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

 

注意格式,小心空格.

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

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试