ldapsearch

Description

Search for entries in the LDAP directory.

Command
ldapsearch --hostname localhost --port 1389 --baseDN "dc=example,dc=com" "(uid=user.0)"
Examples
Basic search for a user
ldapsearch --hostname localhost --port 1389 --baseDN "dc=example,dc=com" "(uid=user.0)"
Search with authentication
ldapsearch --hostname localhost --port 1389 --bindDN "cn=Directory Manager" --bindPassword password --baseDN "dc=example,dc=com" "(objectClass=person)"
Parameters
Parameter Type Required Description
--baseDN string No The base DN to use for the search.
--bindDN string No The DN to use to bind to the directory.
--searchScope string No The scope of the search (base, one, sub).
Command Info
Category: Data Operations
Type: Ping-Directory
Views: 12
Status: Active
Tags
data search ldap