Is there a better way to bind to ad lds using ad lds user credentials in C# other than using AuthenticationTypes.None or AuthenticationTypes.SecureSoc

  • Thread starter Thread starter venkatkri5h
  • Start date Start date
V

venkatkri5h

Guest
Below is the code snippet used to bind to ad lds using ad lds user credentials.

Assume path is "LDAP://server:50000/CN=partition,DC=xxx,DC=com"

if (sslEnabled)
{
de = new DirectoryEntry(path, userDistinguishedName, password, AuthenticationTypes.SecureSocketsLayer);
}
else
{
de = new DirectoryEntry(path, userDistinguishedName, password, AuthenticationTypes.None);
}


I want an alternative way of binding to ad lds instead of using AuthenticationTypes.None when ssl is not Setup because i feel AuthenticationTypes.None is not secure .I tried using other AuthenticationTypes available but none seem to work for ad lds credentials.Few options worked for ad ds credentials but none other than these two for ad lds.

Any Help would be much appreciated.Thanks in advance!!

Continue reading...
 
Back
Top