コード例 #1
0
 /**
  *
  * @internal
  *
  * @param Capall_Ldaper_LdapUser $ldapUser
  * @param string $password
  *
  * @return bool
  */
 public function authenticateUser($ldapUser, $password)
 {
     $bindResult = $this->ldapConnection->bind($ldapUser->getDn(), $password);
     if (PEAR::isError($bindResult)) {
         // Authentication failed.
         return false;
     }
     return true;
 }