User Must Change Password At Next Logon LDAP Flag

R

Ram

Hey,
I'v managed to set the "User Must Change Password At Next Logon" flag on the
LDAP protocol,
Using the - "pwdLastSet" property - by setting it to - "0" (for on) or -
"-1" (for off).
The problem is, I dont know how to check what's the current status of this
user -
When I try and read this property from the user's DirectoryEntry,
I get a "System.ComObject" object, and I cant get any data from this object.
Does Anyone has an idea what object is this, or how can I get this value
otherwise?
Thanks ahead

--Ram
 
P

Paul Clement

¤ Hey,
¤ I'v managed to set the "User Must Change Password At Next Logon" flag on the
¤ LDAP protocol,
¤ Using the - "pwdLastSet" property - by setting it to - "0" (for on) or -
¤ "-1" (for off).
¤ The problem is, I dont know how to check what's the current status of this
¤ user -
¤ When I try and read this property from the user's DirectoryEntry,
¤ I get a "System.ComObject" object, and I cant get any data from this object.
¤ Does Anyone has an idea what object is this, or how can I get this value
¤ otherwise?
¤ Thanks ahead

Try checking the PasswordExpired property using the WinNT provider instead of LDAP.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top