【问题标题】:PHP LDAP Binding issue: Unable to bind to server: Internal (implementation specific) errorPHP LDAP 绑定问题:无法绑定到服务器:内部(特定于实现)错误
【发布时间】:2014-01-24 21:22:20
【问题描述】:

我是 LDAP 新手,但我遇到了绑定问题。 这是我的代码:

$con = ldap_connect(11.11.11.11); // LDAP server is placed at another machine
ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_bind($con, "cn=Michael,cn=Users,DC=example,DC=com", "password");

看起来连接一切正常。错误出现在 ldap_bind:

ldap_bind():无法绑定到服务器:内部(实现 具体)错误

我试图用谷歌搜索这个错误,但什么也没找到。当我故意将 DN 更改为不正确时,会出现另一个错误,显示“凭据错误”。这意味着 DN 和密码一切正常。请帮忙。

【问题讨论】:

    标签: php binding ldap


    【解决方案1】:

    “Users”的 cn (cn=Users) 很可能是您的组织单位 (ou)。 您是否尝试过 DN:“cn=Michael,ou=Users,DC=example,DC=com”?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-24
      • 1970-01-01
      • 2012-02-12
      • 2020-09-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多