ldapsearch syntax part two

I purposely kept the first beginning ldap post simple, to help get across the syntax.


Looking for a given user, searching my first name.



ldapsearch can match on any field, within the LDAP record and perform wildcard matches.



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



[tags]ldapsearch syntax, openldap ldapsearch, LDAP Training School[/tags]


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 *