LDAP
From ZENWorks Wiki
LDAP Search Commands
Linux:> ldapsearch -LLL "(cn=jjennings)" cn sn telephoneNumber -h 172.16.1.61 -p 489 -D cn=admin,o=kc -Wx
Search for all key materials. This is useful when finding certificates that will expire.
Linux:> ldapsearch -LLL -b o=novell -h 10.0.1.3 -p 389 -s sub "objectclass=NDSPKI:Key Material" NDSPKINotAfter
Search Filters
All objects.
*"(objectClass=*)"
All user objects but "andy".
*"(&(objectCategory=person)(objectClass=user)(!cn=andy))"
All objects with a surname that starts with "sm".
*"(sn=sm*)"
All contacts with a surname equal to *"Smith" or "Johnson".
*"(&(objectCategory=person)(objectClass=contact)(|(sn=Smith)(sn=Johnson)))"

