Basic LDAP Search

A comparison between the basic ldapsearch performed on various operating systems:


z/OS Unix System Services (Tivoli Directory Service with SDM backend)

ldapsearch -L -h svipa.example.com -p 389 -D 'toftg001' -w 'secret' \
-b racfid=toftg001,profiletype=user,sysplex=plexname "objectclass=*" dn


Solaris against Oracle Directory Server

ldapsearch -h ldap1.example.com -p 389 -D gtoft -w 'secret' \
-b "dc=ldap,dc=example,dc=com" "(uid=gtoft)" dn

 

Linux against Oracle Directory Server

ldapsearch -L -h ldap1.example.com -p 389 -D gtoft -w 'secret' \
-b "dc=ldap,dc=example,dc=com" "(uid=gtoft)" dn

 

Solaris against Active Directory

ldapsearch -h ad.example.com -p 389 -b 'dc=ad,dc=example,dc=com' \
-D 'AD\gtoft' -w 'secret' '(sAMAccountName=gtoft)' \
displayName sAMAccountName uidNumber gidNumber unixHomeDirectory loginShell memberOf