To test ldap, use ldapsearch
util as:
ldapsearch -b "dc=example,dc=com" -H ldap://whatever.com -D "cn=System,ou=people,ou=hq,dc=example,dc=com" -w <PASSWORD> "(objectclass=*)"
this will list all users. To get specific user:
ldapsearch -b "dc=example,dc=com" -H ldap://whatever.com -D "cn=System,ou=people,ou=hq,dc=example,dc=com" -w <PASSWORD> "(uid=HAHAHHA)"