2013-12-16 132 views
1

我想将值添加到属性。这是我的代码如下。LDAP强(er)身份验证要求

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()

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

有什么不妥的地方。即使我已经认证,我也找不到解决方案。

回答

0

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

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