Summary: LDAP search for disabled users

From: Kamal Bhusal <kbhusal_at_gmail.com>
Date: Thu Jun 10 2010 - 13:25:52 EDT
Many thanks to all who replied..
It resolved my problem with the following command.

Special thanks to Marty Meadows, David Magda, Andrew J. Caines.

$ldapsearch -h <YourLDAPhost-servername> -b "ou=people,dc=govt,dc=gov" -D
"uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot" -x
'(nsAccountLock=true)' uid


dn: uid=sjones,ou=People,dc=govt,dc=gov
uid: sjones

dn: uid=jsmith,ou=People,dc=govt,dc=gov
uid: jsmith

dn: uid=dmaxl,ou=People,dc=govt,dc=gov
uid: dmaxl
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Jun 10 13:27:00 2010

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:16 EST