Hi all,
One of my customer has a problem with password reset. This is not working at all. I'm in the process of gathering the context of the application.
The connection is established with the following code (SSL is not used) :
The failing code is a password reset using System.DS.Protocols :
LdapConnection connection =
new LdapConnection(server);
connection.SessionOptions.Sealing = true;
connection.SessionOptions.ProtocolVersion = 3;
connection.SessionOptions.ReferralChasing = ReferralChasingOptions.None;
connection.SessionOptions.Signing = true;
connection.Bind(credential); // The same user is able to reset the pawword using Active Directory User and Computers snap-in
DirectoryAttributeModification pwdMod =
new DirectoryAttributeModification();
pwdMod.Name = "unicodePwd";
pwdMod.Add(GetPasswordData(password));
pwdMod.Operation = DirectoryAttributeOperation.Replace;
ModifyRequest request = new ModifyRequest(
userDN,
pwdMod
);
DirectoryResponse response =
connection.SendRequest(request);
Exception is:
System.DirectoryServices.Protocols.DirectoryOperationException: The server cannot handle directory requests.
à System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32 messageId, LdapOperation operation, ResultAll resultType, TimeSpan requestTimeOut, Boolean exceptionOnTimeOut)
à System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)
à System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request)
This is the first time this code is failing.
I would like to know how to troubleshoot this problem.
TIA.
Olivier.