How to fetch "User must change password at next logon" through LDAP authentication in ADSI?
-
Hi all, Its been long but I am back with another puzzling question... Does anybody who has worked on ADSI can help me out to read 'User must change password at next logon' using LDAP. I do know how to set the values by using 'pwdlastset' but I am not able to search for a way to read it. Can somebody throw a light on it. -Kushagra
-
Hi all, Its been long but I am back with another puzzling question... Does anybody who has worked on ADSI can help me out to read 'User must change password at next logon' using LDAP. I do know how to set the values by using 'pwdlastset' but I am not able to search for a way to read it. Can somebody throw a light on it. -Kushagra
I dont know the exact answer to your question, usually I use a tool like http://ldaptool.sourceforge.net/[^] to browse for attributes and view them, then try and read the attribute once I know what Im looking for/at If you dont have such, use that or search for [LDAP Explorer] for example 'g'
-
I dont know the exact answer to your question, usually I use a tool like http://ldaptool.sourceforge.net/[^] to browse for attributes and view them, then try and read the attribute once I know what Im looking for/at If you dont have such, use that or search for [LDAP Explorer] for example 'g'
that doesnot help me out... as I am working on ADSI and using LDAP just for authentication..
-
that doesnot help me out... as I am working on ADSI and using LDAP just for authentication..
ok, does the password_expired flag under the UserAccountControl flags here give you want you want ? Howto: (Almost) Everything In Active Directory via C#[^] (sorry, just realised this is c#)
-
Hi all, Its been long but I am back with another puzzling question... Does anybody who has worked on ADSI can help me out to read 'User must change password at next logon' using LDAP. I do know how to set the values by using 'pwdlastset' but I am not able to search for a way to read it. Can somebody throw a light on it. -Kushagra
Finally I was able to figure this stuff out... Check this out: http://msdn.microsoft.com/en-us/library/ms974598.aspx We will have to query for 'PasswordLastChanged' and if it fails with error code E_ADS_PROPERTY_NOTFOUND , then we have the password option set as 'User must change password at next logon'. Hope this helps someone in future. -Kushagra