title: Active Directory PrincipalContext.ValidateCredentials when change password on next login policy is active
body: <p>I am using the classes in <em>System.DirectoryServices.AccountManagement</em>  namespace to interact with Active Directory from my web application. To authenticate user credentials against Active Directory I use the following line of code.</p>
  
  <pre><code>bool authSucceeded=principalContext.ValidateCredentials(userName, password);
  </code></pre>
  
  <p>where <strong>principalContext</strong> is the PrincipalContext instance. <strong>authSucceeded</strong> is true when a user is authenticated with the provided credentials. But this method fails when a <em>'change password on next login</em> policy is active. For those users, even if they are created with a password 'Abcd_10' is not authenticated.</p>
  
  <p>Anyone have an idea how I can authenticate a user in this state so that I can redirect him to a change password screen? I have done code for all the other tasks. But only this thing is missing. </p>
  
  <p>Simply I need to know the reason why the </p>
  
  <pre><code>principalContext.ValidateCredentials
  </code></pre>
  
  <p>method returned false like due to incorrect password/invalid username/user is deactivated OR my requirement(is he being authenticated for password change)</p>
  
  <p>If any idea, please share..</p>