ldapsearch syntax part two

Problem

Looking for a given user, searching my first name.



Solution

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



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



Reference

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



Leave a Reply

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