To test LDAPS and perform queries using ldapsearch from the openldap package.
Use the following for a basic connectivity test:
Bash
123456
# Change the '-D' value to be your user for authentication to LDAP# Confirm '-H' is the correct FQDN that clients will be using
ldapsearch-Hldaps://ldaps.company.com-D"cn=my_user,ou=user,ou=person,dc=company,dc=com"-b"cn=my_user,ou=user,ou=person,dc=company,dc=com"-W
# If for any reason the above fails it may be worth adding '-d 5' to enable debugging
ldapsearch-Hldaps://ldaps.company.com-D"cn=my_user,ou=user,ou=person,dc=company,dc=com"-b"cn=my_user,ou=user,ou=person,dc=company,dc=com"-W-d5