Php 需要LDAP强(er)身份验证

Php 需要LDAP强(er)身份验证,php,ldap,Php,Ldap,我想将该值添加到属性中。下面是我的代码 function set_attribute($attribute, $uid, $service) { $entries = $this->get_account($uid); if ($entries != false && count($entries) == 1) { $entry = $entries[0]; $result = $entry->add(array($at

我想将该值添加到属性中。下面是我的代码

function set_attribute($attribute, $uid, $service)
{
    $entries = $this->get_account($uid);
    if ($entries != false && count($entries) == 1) {
        $entry = $entries[0];
        $result = $entry->add(array($attribute => $service));
        if (PEAR::isError($result))
            return false;
        else {
            $result = $entry->update();
            if (PEAR::isError($result))
                return false;
        }
        return true;
    } else
        return false;
}
我未能向属性添加新值。这是我转储代码$result->getMessage时的错误

有什么问题吗。即使我已经通过身份验证,我也找不到任何解决方案。

当您需要启用SSL/TLS来保护通道而不是明文连接时,这看起来不像是需要保密的错误。虽然你永远不知道,因为你不清楚你的连接是否安全

我想知道这是否意味着许可问题?或者,在这种情况下,系统允许明文绑定,但不允许在连接上没有安全通信的情况下执行某些操作

string(121) "Could not add new values to attribute serviceType: Strong(er) authentication required: LDAP_STRONG_AUTH_REQUIRED"