

Hostname of LDAP server to connect to (default is localhost) If no attributes are provided, all attributes the user is allowed to read will be returned. Mail: tool return the attribute values for the attributes given in the command line (uid and mail). Mail: cn=William Bligh,ou=people,o=sevenSeas b "ou=people,o=sevenSeas" -s sub "(&(objectClass=person)(givenName=William))" uid mailĭn: cn=William Bush,ou=people,o=sevenSeas $ ldapsearch -h zanzibar -p 10389 -D "uid=admin,ou=system" -w secret \\

The query searches all entries below "ou=people,o=sevenSeas" which match the filter (&(objectClass=person)(givenName=William)), and therefore are persons called William.

If you connect to ApacheDS with command line tools, you execute searches against the directory with the ldapsearch command. (objectClass=*) does the job, because each entry has at least one objectClass value occurence (normally two or more), the filter therefore matches all entries. It is used if a filter expression is required as a parameter, but all entries should be returned regardless of their attribute values. Quite often, for instance as default in UI tools, you will see the search filter (objectClass=*). The search scope defines the set of entries below the base, which is examined by the server.Īll person entries with surnames starting with "H"Īll person entries with surnames starting with "H" or "W" No entries above this point will be returned within the search result. The search base determines an entry as the starting point within the tree. To the set of entries defined by base and scope, a filter is applied. The search base and the search scope are used to reduce the amount of entries, which should take into account as result entries. The following description about LDAP searches matches all of the above.
APACHE DIRECTORY STUDIO PORTS ARE IN USE SOFTWARE
APACHE DIRECTORY STUDIO PORTS ARE IN USE HOW TO
This section gives an overview on how to search your directory 2 2 list Searching with LDAPįrom a users point of view, searching is the most important LDAP operation at all.
