[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"

 

注意格式,小心空格.

阅读更多
文章标签: c
个人分类:
上一篇eclips与sun appserver调试的整合
下一篇[python]如何清屏?也就是实现clear?
想对作者说点什么? 我来说一句

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

关闭
关闭