티스토리 뷰
# 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
검색어
반응형
'LDAP' 카테고리의 다른 글
LDAP admin 암호 변경 (0) | 2017.05.30 |
---|
댓글