Changeset View
Changeset View
Standalone View
Standalone View
src/app/Backends/LDAP.php
Show First 20 Lines • Show All 424 Lines • ▼ Show 20 Lines | private static function setUserAttributes(User $user, array &$entry) | ||||
if (in_array("activesync", $roles)) { | if (in_array("activesync", $roles)) { | ||||
$entry['nsroledn'][] = "cn=activesync-user,{$hostedRootDN}"; | $entry['nsroledn'][] = "cn=activesync-user,{$hostedRootDN}"; | ||||
} | } | ||||
if (!in_array("groupware", $roles)) { | if (!in_array("groupware", $roles)) { | ||||
$entry['nsroledn'][] = "cn=imap-user,{$hostedRootDN}"; | $entry['nsroledn'][] = "cn=imap-user,{$hostedRootDN}"; | ||||
} | } | ||||
if (empty($entry['nsroledn'])) { | |||||
unset($entry['nsroledn']); | |||||
} | |||||
} | } | ||||
/** | /** | ||||
* Get LDAP configuration for specified access level | * Get LDAP configuration for specified access level | ||||
*/ | */ | ||||
private static function getConfig(string $privilege) | private static function getConfig(string $privilege) | ||||
{ | { | ||||
$config = [ | $config = [ | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |