Displaying LDAP content
From WPKG | Open Source Software Deployment and Distribution
To display (remote) LDAP content, use something like below:
# ldapsearch -h 192.168.1.2 -b "ou=Users,dc=example,dc=com" -x -s sub "objectclass=*" \ -W -D "cn=testuser,ou=Users,dc=example,dc=com"
It can be useful when you have trouble connecting to a remote LDAP or Active Directory server.
If no authentication is needed, you can omit the "-W" and "-D" flags.
# ldapsearch -h 127.0.0.1 -b "dc=example,com" -x -s sub "objectclass=*"