ldapsearch -D "uid=svc-stp,cn=users,cn=accounts,dc=ipa,dc=mycorp,dc=com" -b "cn=users,cn=accounts,dc=ipa,dc=mycorp,dc=com" -h haipa5.dc.mycorp.com -p 389 -w "password" -s sub > all
ldapsearch -D "uid=svc-stp,cn=users,cn=accounts,dc=ipa,dc=mycorp,dc=com" -b "cn=users,cn=accounts,dc=ipa,dc=mycorp,dc=com" -h haipa5.dc.mycorp.com -p 389 -w "password" -s sub '(&(objectclass=posixAccount)(memberOf=cn=ipausers,cn=groups,cn=accounts,dc=ipa,dc=mycorp,dc=com)(!(nsAccountLock=TRUE)))'
ldapsearch -D "uid=svc-stp,cn=users,cn=accounts,dc=ipa,dc=mycorp,dc=com" -b "cn=users,cn=accounts,dc=ipa,dc=mycorp,dc=com" -h haipa5.dc.mycorp.com -p 389 -w "password" -s sub '(&(uid=*)(!(ipaUserAuthType=*))(!(nsAccountLock=TRUE)))'
Leave a Reply