Changeset View
Changeset View
Standalone View
Standalone View
src/app/Backends/LDAP.php
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | class LDAP | ||||
* * We certainly don't have its password anymore. | * * We certainly don't have its password anymore. | ||||
* | * | ||||
* 2) The hosted kolab account. | * 2) The hosted kolab account. | ||||
* | * | ||||
* 3) The Directory Manager account. | * 3) The Directory Manager account. | ||||
* | * | ||||
* @param \App\User $user The user account to create. | * @param \App\User $user The user account to create. | ||||
* | * | ||||
* @return void | * @return bool|void | ||||
*/ | */ | ||||
public static function createUser(User $user) | public static function createUser(User $user) | ||||
{ | { | ||||
$config = self::getConfig('admin'); | $config = self::getConfig('admin'); | ||||
$ldap = self::initLDAP($config); | $ldap = self::initLDAP($config); | ||||
list($_local, $_domain) = explode('@', $user->email, 2); | list($_local, $_domain) = explode('@', $user->email, 2); | ||||
Show All 39 Lines | public static function updateDomain($domain) | ||||
// | // | ||||
} | } | ||||
/** | /** | ||||
* Update a user in LDAP. | * Update a user in LDAP. | ||||
* | * | ||||
* @param \App\User $user The user account to update. | * @param \App\User $user The user account to update. | ||||
* | * | ||||
* @return void | * @return bool|void | ||||
*/ | */ | ||||
public static function updateUser(User $user) | public static function updateUser(User $user) | ||||
{ | { | ||||
$config = self::getConfig('admin'); | $config = self::getConfig('admin'); | ||||
$ldap = self::initLDAP($config); | $ldap = self::initLDAP($config); | ||||
list($_local, $_domain) = explode('@', $user->email, 2); | list($_local, $_domain) = explode('@', $user->email, 2); | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |