I am trying to connect to LDAP to authenticate the user. Here is my code, but i am cant able to set the SSL using my c# code.
using LdapConnection = Novell.Directory.Ldap.LdapConnection;
using LdapException = Novell.Directory.Ldap.LdapException;
var ldapHost = WebConfigurationManager.AppSettings["LDAP_HOST"];
var ldapPort = WebConfigurationManager.AppSettings["LDAP_PORT"];
connection.Connect(ldapHost, Convert.ToInt32(ldapPort));
sb = new StringBuilder();
sb.Append(ldapLocation).Append(userName).Append(",").Append(ldapLocationIndia);
connection.Bind(LdapConnection.Ldap_V3, sb.ToString(), password);
I got a message from my application security team i am sending the plain password, So i try to secure that by setting the authentication type as secure by try setting the option by
connection.SessionOptions.SecureSocketLayer = true;
but i didnt see any Sessionoption in my connection object, I am using novel.ldap dll for my LDAP operation.
Any body help me please? How to send the password in a secure way over network for ldap server for authentication.
I am using port 636.
Thanks in advance