SetPassword and ChangePassword Invoke
- From: John Larsen <larsenj@xxxxxxx>
- Date: Wed, 14 Mar 2007 17:37:01 -0700
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?
.
- Follow-Ups:
- Re: SetPassword and ChangePassword Invoke
- From: Joe Kaplan
- Re: SetPassword and ChangePassword Invoke
- Prev by Date: Re: How do I see who created a user/group/OU in W2k3 AD???
- Next by Date: command to check what dc authenticated client
- Previous by thread: Re: Inactive User Logins
- Next by thread: Re: SetPassword and ChangePassword Invoke
- Index(es):
Loading