Patrick-Dussault

How to search for a specific user using ldapsearch command line

Blog Post created by Patrick-Dussault Employee on Apr 6, 2018

Here's a sample of ldapsearch command line to get all attributes from a specific user :

 

ldapsearch -h ldap_server_ip -p ldap_port -b "dc=training,dc=com" -D "administrator_dn_to_connect_to_ldap" -w administrator_password -x "(uid=the_uid_value)"

Outcomes