[LDAP] LDAP query example

zhaozj2021-02-12  160

LDAPSearch -h 192.9.150.11 -d uid = Amadmin, Ou = people, DC = CMBC, DC = Net -w Password -b "o = center, DC = CMBC, DC = Net" -Z 10 "(& (OU = People) (entryid = 8581) "ParentID

C: / documents and settings / administrator> ldapsearch-h 192.9.150.11 -d uid = amadmin, ou = people, dc = cmbc, dc = net -w password -b "DC = CMBC, DC = Net" (UID = OA) "givenname

C: / Documents and Settings / Administrator> ldapsearch-h 192.9.150.11 -d uid = Amadmin,

OU = people, DC = CMBC, DC = Net -w Password -b "o = center, DC = CMBC, DC = Net" (& (ObjectClass = Person) (UID = *)) "Givenname

C: / documents and settings / administrator> ldapsearch-h 192.9.150.11 -d uid = Amadmi

n, ou = people, dc = cmbc, dc = net -w password -b "o = center, DC = CMBC, DC = Net" -Z 10000 "(&

(ObjectClass = Person) (UID = *)) "Givenname

C: /> ldapsearch-h s1md.cmbc.com.cn -p 11489 -d uid = CMBCOA, OU = Proxyuser, DC = CMBC, DC = COM, DC = CN -W Password -b "DC = CMBC, DC = COM, DC = CN "" ObjectClass = CMBCPERSON "

Pay attention to the format, be careful.

转载请注明原文地址:https://www.9cbs.com/read-6915.html

New Post(0)