gpt4 book ai didi

linux - 连接到 ldap 时出现绑定(bind)错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:55:19 26 4
gpt4 key购买 nike

我写了下面的ldap命令来测试ldap连接

 ldapsearch -x -h ldap.com -b "uid=user1,ou=people,dc=domain,dc=com" 

我得到以下输出

# extended LDIF
#
# LDAPv3
# base <uid=user1,ou=people,dc=domain,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 1 Operations error
text: 000004DC: LdapErr: DSID-0C0907C2, comment: In order to perform this opera
tion a successful bind must be completed on the connection., data 0, v2580

# numResponses: 1

请建议如何解决绑定(bind)错误

最佳答案

该错误意味着您需要绑定(bind)到服务器才能执行搜索。例如:

ldapsearch -D "cn=directory manager" -w secret -p 389 -h server.example.com -b "dc=example,dc=com" -s sub "(objectclass=*)"

ldapsearch 的手册页

关于linux - 连接到 ldap 时出现绑定(bind)错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49261591/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com