Re: LDAP Authentication fails on Web Application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Anbu please see this at:-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT02.asp
Patrick

"Anbu" <t_anbazhagan2001@xxxxxxxxxxx> wrote in message
news:1144812646.992538.265940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Sorry for cross posting the query. But I need a resolution as early as
possible.

I have developed an application to authenticate the user based on LDAP
Search and authentication.

The Windows application that was developed using C# works fine. But it
fails when I convert this as a DLL or Web Service. I need to host the
application on a server to use the result across different applications
and on different clients.

The code looks likes this,

System.DirectoryServices.DirectoryEntry entry;
System.DirectoryServices.DirectorySearcher mySearcher;

bool success = false;
string message = "";

try
{
entry = new System.DirectoryServices.DirectoryEntry(ldap_host,
application_user, application_password,
System.DirectoryServices.AuthenticationTypes.SecureSocketsLayer);
}

catch (Exception ex)
{
// Throws "The server is not operational error"
// Also the entry.AdsObject returns as
<error: an exception of type:
{System.Runtime.InteropServices.COMException} occurred>
}


But the server is in operations, and the code works fine with the
Desktop /Windows application.

Is there any problem with the ASPNET account? or should i really need
to do anything to make it work.

TIA



.



Relevant Pages

  • LDAP Authentication fails on Web Application
    ... I have developed an application to authenticate the user based on LDAP ... System.DirectoryServices.DirectoryEntry entry; ... <error: an exception of type: ... But the server is in operations, and the code works fine with the ...
    (microsoft.public.dotnet.languages.csharp)
  • LDAP Authentication fails on Web Service
    ... I have developed an application to authenticate the user based on LDAP ... System.DirectoryServices.DirectoryEntry entry; ... <error: an exception of type: ... But the server is in operations, and the code works fine with the ...
    (microsoft.public.dotnet.framework.webservices)
  • LDAP Authentication fails on Web Application
    ... I have developed an application to authenticate the user based on LDAP ... System.DirectoryServices.DirectoryEntry entry; ... <error: an exception of type: ... But the server is in operations, and the code works fine with the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Possible easy question
    ... Open a command window, and type in "set", then look for the LOGONSERVER ... > What is the command line to view what server you authenticate to. ...
    (microsoft.public.windows.server.general)
  • RE: Backup & Monitoring not working!
    ... Error message in Windows Small Business Server 2003: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.windows.server.sbs)