[ldap]Ldap查询范例

 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

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

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"

 

注意格式,小心空格.

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页