Prev   Next

Querying LDAP

The ldapsearch utility can be used to query the database. For example, the command:

ldapsearch -h localhost -b dc=matchg,dc=com mail=*

searches for all entries that have an E-Mail address. Some other search examples are illustrated below.


ldapsearch -h localhost -b dc=matchg,dc=com sn=Grun

ldapsearch -h localhost -b dc=matchg,dc=com sn=Grun cn,mail

ldapsearch -h localhost -b dc=matchg,dc=com objectClass=inetOrgPerson
Prev   Next