set user password using c# in Active Directory fails

0

I try to set the user password like this:

 user.Invoke("SetPassword", password);

But I get an exception

The server is unwilling to process the request. (Exception from HRESULT: 0x80072035)

0000052D: SvcErr: DSID-031A129B, problem 5003 (WILL_NOT_PERFORM), data 0

Sounds familiar to someone?

c#-4.0
active-directory
asked on Stack Overflow Apr 20, 2016 by Legends • edited Apr 21, 2016 by rbrayb

1 Answer

0

52D is the error code and thanks to the LDAP Wiki page, the problem was the password complexity restriction -> solution: a stronger password.

LDAP Wiki

answered on Stack Overflow Apr 20, 2016 by Legends

User contributions licensed under CC BY-SA 3.0