SetPassword and ChangePassword Invoke



Trying to set or change a password while the "User must change password at
next login." yields an error foo the same name.

This is a pure MS AD 2003 environement.

I am using C# as follows

DirectoryEntry DE = new DirectoryEntry
("WinNT://domainservername/username,user",username,password,Authenticate.Se
cure);
DE.Invoke("ChangePassword", new object[] {currentpassword, newpassword});
DE.Close();

I am getting a COMException on the Invoke.

Is there a differentway of doing this?
.


Loading