ldapsearch syntax part two

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

Basic LDAP syntax demo part2

[/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 😉

Leave a Reply

Your email address will not be published. Required fields are marked *