重置ldap用户密码(错误:服务器无法处理目录请求.) [英] Reset ldap user password (Error : The server cannot handle directory requests. )

查看:907
本文介绍了重置ldap用户密码(错误:服务器无法处理目录请求.)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用此代码

Hi,
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();
   SearchRequest request = new SearchRequest("CN=Users,DC=DOMAIN", "CN=mayank", System.DirectoryServices.Protocols.SearchScope.Subtree);
   SearchResponse response = (SearchResponse)connection.SendRequest(request);
   SearchResultEntry entry = response.Entries[0];
   DirectoryAttributeModification modifyUserPassword = new DirectoryAttributeModification();
   modifyUserPassword.Operation = DirectoryAttributeOperation.Replace;
   modifyUserPassword.Name = "unicodePwd";
   modifyUserPassword.Add(GetPasswordData("admin1234!"));
   ModifyRequest modifyRequest = new ModifyRequest(entry.DistinguishedName, modifyUserPassword);
   DirectoryResponse dirResponse = connection.SendRequest(modifyRequest);
}


成功连接到ldap,但在更改密码时抛出错误服务器无法处理目录请求.".


Successfully connect to ldap but on change password throw an error "The server cannot handle directory requests.".

推荐答案

可以找到解决类似问题的一种方法:此处 [另一个好的潜在解决方案 [修复程序 [ ^ ]
One solution to a similar problem can be found: here[^]
Another good potential solution[^]
You may need this hotfix[^]


这篇关于重置ldap用户密码(错误:服务器无法处理目录请求.)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆