| ldapsearch |
[-n] [-u] [-v] [-k] [-K] [-t]
[-A] [-L[L[L]]] [-M[M]] [-d debuglevel] [-f file]
[-D binddn] [-W] [-w passwd] [-y passwdfile]
[-H ldapuri] [-h ldaphost] [-p ldapport]
[-P 2|3] [-b searchbase] [-s base|one|sub]
[-a never|always|search|find] [-l timelimit]
[-z sizelimit] [-O security-properties] [-I]
[-Q] [-U authcid] [-R realm] [-x] [-X authzid]
[-Y mech] [-Z[Z]] filter [attrs...] |
| -h ldaphost |
Specifies an alternate host on which LDAP server is running |
|
-p ldapport |
Specifies the TCP port where LDAP server is listening |
| -D binddn | Binddn is the distinguished name used to bind to LDAP server |
| -w passwd | Use passwd as the password for simple authentication |
| -b searchbase | Set searchbase as the starting point for the search |
| -s scope (base | one | sub) | Specify to limit the search to look in the base object, one-level, or the whole subtree. |
| -f file | Reads a series of lines from file performing a search for each line. The filter given in the command line is treated as a pattern where %s is replaced with a line from file. If file is � then the lines are read from standard input. |
| -z sizelimit | Retrieve at most sizelimit entries as results from the search |
| filter | RFC 2254 search filter string representation with the condition(s) to be satisfied by the entries |
| attrs | List of attributes to be retrieved in the search, if * or omitted all attributes are returned |