ldapsearch – ldap command to test connection
Well the post name is a misnomer. Lately I’ve been using ldapsearch command to test connection to ldap server, hence the name.
Following is the shell command,
$ ldapsearch -x -LLL -h ldapserver.example.com -D username -w password -b "DC=example,DC=com" -s sub "(objectClass=person)" cn