title: Can not set AD-LDS user-password with the UserPrincipal-class
body: <p>I’m stuck with the UserPrincipal class manipulating AD-LDS user-objects. While I can query users, change attributes and save them back to AD LDS, as soon as I try to set (or change) the password, I always get a <code>PrincipalOperationException</code> with the additional information <strong>“The directory property cannot be found in the cache.”</strong></p>
  
  <p>If I change the user’s password via ADSI-Edit, everything works fine. Therefore I assume it’s not a schema-issue. I bind with simple binding and without SSL (it’s a development-machine).  I have allowed the unsecure password-setting option via dsmgmt. The user I use to connect is in the admin-role of the directory hive where the users reside in.
  The code looks like this (simplified):</p>
  
  <pre><code>using (var ctx = GetPrincipalContext()) {                
      UserPrincipal u = UserPrincipal.FindByIdentity(ctx, IdentityType.Name, identityValue);         
      u.SetPassword("12345$äöAAA1234_");  
      u.Save();
  }
  </code></pre>
  
  <p>where the context is created in GetPrincipalContext() like this:</p>
  
  <pre><code>new PrincipalContext(ContextType.ApplicationDirectory, "localhost", "[DC=...]", ContextOptions.SimpleBind,"[username of adminuser]","[Password of admin user]");
  </code></pre>
  
  <p>The same issue arises when I try to create a new UserPrincipal and then saving it. I assume, it is also because of the attached Password.</p>