I have a webapp that uses authentication using ActiveDirectoryMembershipProvider. This works great ... users can successfully log in.
After logging in, the user can change the password. We use the ChangePassword control, which retrieves membership information and uses the OLD and new password to change the user's password. THIS DOES NOT WORK .
The exception message generated is that the password does not comply with the password rules (not the message from the provider, but the base COM object. But this is not the same as switching to the ActiveDirectory console and changing the password there do. When using the ActiveDirectory console, we used a fairly simple password : "Password01".
The user in ActiveDirectory is set to Allow password change. All our users are stored in a specific unit, and the connection string with AD also points to this unit. Again, the connection is successful, as we can do login.
Any other thing that could prevent us from changing our password?
Exclusion Information
System.Web.Security.MembershipPasswordException: The password supplied is invalid.
Passwords must conform to the password strength requirements configured for the default provider.
---> System.Runtime.InteropServices.COMException (0x800708C5): The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. (Exception from HRESULT: 0x800708C5)
--- End of inner exception stack trace ---
at System.Web.Security.ActiveDirectoryMembershipProvider.ChangePassword(String username, String oldPassword, String newPassword)
at System.Web.Security.MembershipUser.ChangePassword(String oldPassword, String newPassword)
source
share