Searching easier way

To use “ldapsearch” command you would require to install openldap-clients package (most Linux, Unix operating systems should have this installed by default)

ldapsearch -x -H ldaps://ldap-server.example.com:636 -D "LDAP_USER_ALLOWED_TO_SEARCH@DOMAIN" -w 'SECRET_OR_PASSWORD' -b "ou=Users,ou=organization_name,dc=example,dc=com" "(cn=UserEntryToList)"