LdapConnection connection = new LdapConnection(new LdapDirectoryIdentifier("SJTPNOC.com", 636)); connection.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback((con, cer) => true); connection.SessionOptions.ProtocolVersion = 3; connection.AuthType = AuthType.Basic; connection.SessionOptions.SecureSocketLayer = true; connection.Timeout = new TimeSpan(0, 0, 10); connection.Credential = new NetworkCredential(username, password); using (connection){ connection.Bind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)