I purposely kept the first beginning ldap post simple, to help get across the syntax.
[problem]
Looking for a given user, searching my first name.
[/problem]
[solution]
ldapsearch can match on any field, within the LDAP record and perform wildcard matches.
[/solution]
[example]
Here are some more examples:
ldapsearch -L -x -v -D’cn=Manager,dc=demo,dc=net’ -w secret -b’dc=demo,dc=net’ -s sub ‘givenname=*' givenname sn mail
[/example]
[reference]
[tags]ldapsearch syntax, openldap ldapsearch, LDAP Training School[/tags]
[/reference]
If you have found my website useful, please consider buying me a coffee below 😉