Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

querying LDAP - get account status (like disabled , active, etc.)

Tags:

windows

ldap

I am querying a LDAP and setting variables for mail and displayName. I also need to get account is disable or active. Which property should I need to pull for this?

like image 730
Ninja Cowgirl Avatar asked Dec 06 '25 17:12

Ninja Cowgirl


1 Answers

If using Active Directory the attribute you are interested in is userAccountControl which is a bit mask. Here are the possible values... http://support.microsoft.com/kb/305144/

There is no standard attribute though and it will vary by product and sometimes applications that use the directory server as a repository.

like image 151
Dave Bennett Avatar answered Dec 08 '25 14:12

Dave Bennett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!