【问题标题】:Getting bind error while connecting to ldap连接到 ldap 时出现绑定错误
【发布时间】:2018-03-13 16:47:03
【问题描述】:

我写了下面的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

请建议如何解决绑定错误

【问题讨论】:

  • 为了执行此操作,必须在连接上完成成功的绑定(即您必须以用户身份绑定密码。)
  • 你能给我提供包含用户和密码的命令吗?

标签: linux ldap bind ldap-query selinux


【解决方案1】:

该错误意味着您需要绑定到服务器才能执行搜索。举个例子:

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

ldapsearch 的手册页

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-04
    • 2017-05-08
    • 2020-08-22
    • 2019-06-21
    • 2011-02-09
    • 1970-01-01
    相关资源
    最近更新 更多