2013-12-16 65 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來保護通道而不是明文連接時。雖然你永遠不知道,因爲你不明確你的連接是否安全。

我不知道這是否意味着權限問題?或者,在這種情況下,系統允許明確的文本綁定,但不允許在連接上沒有安全通信的情況下進行某些操作。