So we have a website wherein one of its functionalities is you can create a user in an AD. Now, we have multiple domains that are enforcing password complexity. I am very sure that this code proceeds to the exception whenever that complexity was not met:
newUser.Invoke("SetPassword", new object[] { password });
The problem is, one of our domains throws this message in the browser to the user:
The password does not meet the password policy requirements. Check the minimum password lengths, password complexity and password history requirements
But when using other domain, it displays another message:
Server is unwilling to process the request.
I would like to ask, what are the factors why are error messages varying in the domains?