HI Folks. Maybe you can help me out here.
I'm working on a Windows2003 active directory, using VB.Net.
I'm attempting to 'remove' the 'Must Change Password at next logon' bit.
Everytime, I get an error. The latest one is 80072035 (The Server is unwilling to process the requests).
I tried using the Winnt provider. Didn't work. I tried the LDAP provider, no help. Now I'm settled on the 'System.DirectoryServices.DirectoryEntry' way of doing this.
I can set the bit to on, by setting 'pwdLastSet' to zero. BUt when I try to set it to anything else, it fails. I tried using every variable types. (int, dbl, lng, str, obj) Nothing works. I tried using a value of 1, the current value as shown in ADSIEdit.msc, as well as the current time using the DateTime.ToFileTime method.
I'm bound to the object as Administrator, and I can successfully change any other data. Could this be a AD2003 security feature? Or a result of Group Policies?
Any help would help.
I'll post my code on request.
Thanks!
--------------------------
Paul Landry
I'm working on a Windows2003 active directory, using VB.Net.
I'm attempting to 'remove' the 'Must Change Password at next logon' bit.
Everytime, I get an error. The latest one is 80072035 (The Server is unwilling to process the requests).
I tried using the Winnt provider. Didn't work. I tried the LDAP provider, no help. Now I'm settled on the 'System.DirectoryServices.DirectoryEntry' way of doing this.
I can set the bit to on, by setting 'pwdLastSet' to zero. BUt when I try to set it to anything else, it fails. I tried using every variable types. (int, dbl, lng, str, obj) Nothing works. I tried using a value of 1, the current value as shown in ADSIEdit.msc, as well as the current time using the DateTime.ToFileTime method.
I'm bound to the object as Administrator, and I can successfully change any other data. Could this be a AD2003 security feature? Or a result of Group Policies?
Any help would help.
I'll post my code on request.
Thanks!
--------------------------
Paul Landry