/**
* Adds a new user account to the authentication table.
*
* Returns true on success, otherwise false.
*
* @param string $login Loginname
* @param string $pass Password
* @return boolean
*/
public function add($login, $pass)
{
$user = new PMF_User();
$result = $user->createUser($login, null);
// Update user information from LDAP
$user->setUserData(array('display_name' => $this->ldap->getCompleteName($login), 'email' => $this->ldap->getMail($login)));
return $result;
}