Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 542 Bytes

ldap.md

File metadata and controls

14 lines (9 loc) · 542 Bytes

To run it:

ldapsearch -h ldap.example.com <query>

more useful options:

-x    no SASL (e.g. if you get an error about "No credentials cache file found")

complete examples:

ldapsearch -H ldap://ldap.example.com -x -b 'ou=people,dc=example,dc=com'
ldapsearch -H ldap://ldap.example.com -x -b 'ou=people,dc=example,dc=com' '(uid=jungwirthp)'
# binding as the user:
ldapsearch -H ldap://ldap.example.com -x -D 'cn=jungwirthp,ou=People,dc=example,dc=org' -w CENSORED -b 'ou=people,dc=example,dc=org' '(uid=jungwirthp)'