LDAP plugins must change the createUser method to return the DN, as we
need this to update the cache.
Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* create new user
* @param string $username username of the new user
* @param string $password password of the new user
+ * @throws \UnexpectedValueException
* @return bool
*/
public function createUser($username, $password) {
//updates user mapping
$this->access->dn2ocname($dn, $username, true);
} else {
- throw new \Exception("LDAP Plugin: Method createUser changed to return the user DN instead of boolean.");
+ throw new \UnexpectedValueException("LDAP Plugin: Method createUser changed to return the user DN instead of boolean.");
}
}
return (bool) $dn;