资源
错误码查询页面
使用
命令
-
-D
binddn, 这个需要从LDAP管理员那里获得, 并且注意CN=$firstName $lastName 是你在Active Directory上的用户名称,first name和last name -
-w
密码 -
-p
端口 389 -
-h
服务器地址 199.201.139.20 -
-H
URI地址
命令
-
-b
basedn, 搜索的入口 -
-s
搜索的范围 base, one, sub, or children, one-level, subtree, or children search. 默认是sub -
搜索过滤
具体可以参考【文档】(|(filter)(filter)(filter)...)
-
-E "pr=500/noprompt"
不限制返回数量,默认限制1000,超过1000个节点需要加这个
更多参数可以ldapsearch --help
查看,简单使用上面的命令就够了。