LDAPS Authentication in asp.net application

  • Thread starter Thread starter Praveen Kumar Chakrala
  • Start date Start date
P

Praveen Kumar Chakrala

Guest
Hi,

I can't connect my c# application to a LDAPS server.

Earlier, i was able to connect to LDAP server by using the following code:

string srvr = ConfigurationManager.AppSettings["LDAP_SERVER"]; //where "LDAP_SERVER" is server url ex: "LDAP//domain_name".

DirectoryEntry entry = new DirectoryEntry(srvr, usr, pwd); // usr-domain user id , pwd-domain password

object nativeObject = entry.NativeObject;

But, recently we had to update our servers to LDAPS. The above code does not work with LDAPS server (server url looks like "LDAPS://ldap.domain_name").

Can anyone suggest on how to authenticate users over LDAPS server?

Thanks in advance.

Regards,

Praveen.

Continue reading...
 
Back
Top