Reset ldap user password (Error : The server cannot handle directory requests. )
问题 I am using this code: LdapConnection connection = new LdapConnection(new LdapDirectoryIdentifier("DOMAIN",636)); connection.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback((con, cer) => true); connection.SessionOptions.ProtocolVersion = 3; connection.AuthType = AuthType.Basic; connection.Credential = new NetworkCredential("CN=user,CN=Users,DC=DOMAIN","password!"); connection.SessionOptions.SecureSocketLayer=true; using(connection) { connection.Bind();