Re: LDAP Authentication fails on Web Application
- From: "Patrick.O.Ige" <naijacoder@xxxxxxxxxxx>
- Date: Wed, 12 Apr 2006 19:56:13 +1000
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
.
- References:
- LDAP Authentication fails on Web Application
- From: Anbu
- LDAP Authentication fails on Web Application
- Prev by Date: Re: Conditional <asp:BoundField
- Next by Date: Re: Is there any function return the short date format on the regional and Language Options under control panel?
- Previous by thread: LDAP Authentication fails on Web Application
- Next by thread: Re: LDAP Authentication fails on Web Application
- Index(es):
Relevant Pages
|