title: ASP.NET ChangePassword control with ActiveDirectoryMembershipProvider
body: <p>I have a webapp that uses Forms Authentication using ActiveDirectoryMembershipProvider.
  That works fine... users can do login successfully.</p>
  
  <p>Once the user do login, he can change the password.
  We use a ChangePassword control that retrieve the Membership information and uses the OLD and new password to change the user's password.  <strong>THAT Doesn't work</strong>.</p>
  
  <p>The Exception message thrown is that the password doesn't fits the password policies (Not the message of the provider, but the underlying COM object. But this is not the case, as going to the ActiveDirectory console and changing the password there do works. When using the ActiveDirectory console we used a quite simple password: "Password01".</p>
  
  <p>The user in ActiveDirectory is set to Allow changing password. All our users are stored in a certain OU and the connection string to AD points to this OU also. Again, the connection is successfull as we can do Login.</p>
  
  <p><strong>Any other thing that can prevent us to change Password?</strong></p>
  
  <p><em>Exception information</em></p>
  
  <pre><code>    System.Web.Security.MembershipPasswordException: The password supplied is invalid.
  Passwords must conform to the password strength requirements configured for the default provider.
  ---&gt; 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)
  </code></pre>