CSDN博客

img mopege

[ldap]Ldap查询范例

发表于2004/7/6 17:40:00  1340人阅读

 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"

 

注意格式,小心空格.

0 0

相关博文

我的热门文章

img
取 消
img