LdapConnection con = new LdapConnection(new LdapDirectoryIdentifier(ldapHost, int.Parse(LdapPort))); this.CurrentLdapCertPath = ldapCertPathPassed; con.SessionOptions.SecureSocketLayer = true; con.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback(ServerCallback); con.Bind(new NetworkCredential(UserId, Password));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)