LDAP

LDAP search

magnon 2017. 5. 30. 11:19
# ldapsearch \
-LLL \						# result formatting
-H ldapi:/// \					# ldap uri
-p 389 \					# ldap port

-D "cn=admin,dc=***" \				# bindDN
-W \						# password

-b cn=config \					# searchbase
olcRootDN=cn=admin,dc=****\			# filter
dn olcRootDN olcRootPW 				# attrs

 

-L[L{[L]]

Search results are display in LDAP Data Interchange Format detailed in ldif(5). A

single -L restricts the output to LDIFv1.

A second -L disables comments. A third -L disables printing of the LDIF version.

The default is to use an extended version of LDIF.

 

-Y mech

Specify the SASL mechanism to be used for authentication. If it's not specified,

the program will choose the best mechanism the server knows.

 

-H ldapuri

LDAP 서버의 URI

 

-p ldapport

LDAP 서버의 port

 

-D binddn

검색에 사용할 user의 DN

 

-w passwd

검색에 사용할 user의 암호

 

-W

암호를 별도로 입력받도록 함

 

-b searchbase

검색어

반응형