Difference between revisions of "Ldapsearch"
From MyWiki
(7 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[optional_options] [optional_search_filter] [optional_list_of_attributes]<br> | [optional_options] [optional_search_filter] [optional_list_of_attributes]<br> | ||
'''Options'''<br> | '''Options'''<br> | ||
− | -b "cn=Barbara Jensen, ou=Product Development,dc=example,dc=com"<br> | + | -b "cn=Barbara Jensen, ou=Product Development,dc=example,dc=com" ( -b "" to search root DSE )<br> |
-D "uid=bjensen, dc=example,dc=com" ( Authentication distinguished name )<br> | -D "uid=bjensen, dc=example,dc=com" ( Authentication distinguished name )<br> | ||
+ | -h mozilla ( host ) <br> | ||
+ | -l 300 ( timelimit, nsslapd-timelimit ) <br> | ||
+ | -p 1049 ( port, The default is 389. If -Z is used, the default is 636. )<br> | ||
+ | -w diner892 ( password associated with the distinguished name of the "-D" option ) <br> | ||
+ | -X ( sort on the serber rather than on the client )<br> | ||
+ | -x ( use simple authentication ) | ||
+ | -Z ( size limit ??? ) <br> |
Latest revision as of 09:30, 23 April 2015
Reference : https://www.centos.org/docs/5/html/CDS/ag/8.0/Finding_Directory_Entries-Using_ldapsearch.html
[optional_options] [optional_search_filter] [optional_list_of_attributes]
Options
-b "cn=Barbara Jensen, ou=Product Development,dc=example,dc=com" ( -b "" to search root DSE )
-D "uid=bjensen, dc=example,dc=com" ( Authentication distinguished name )
-h mozilla ( host )
-l 300 ( timelimit, nsslapd-timelimit )
-p 1049 ( port, The default is 389. If -Z is used, the default is 636. )
-w diner892 ( password associated with the distinguished name of the "-D" option )
-X ( sort on the serber rather than on the client )
-x ( use simple authentication )
-Z ( size limit ??? )