LDAP: simplify default for user home settings, fixes wrong display of default value in settings
This commit is contained in:
parent
0a6e9933fc
commit
e4e915fa3b
1 changed files with 4 additions and 7 deletions
|
@ -357,9 +357,6 @@ class Connection {
|
|||
case 'ldapAgentPassword':
|
||||
$value = base64_encode($value);
|
||||
break;
|
||||
case 'homeFolderNamingRule':
|
||||
$value = empty($value) ? 'opt:username' : $value;
|
||||
break;
|
||||
case 'ldapBase':
|
||||
case 'ldapBaseUsers':
|
||||
case 'ldapBaseGroups':
|
||||
|
@ -394,10 +391,10 @@ class Connection {
|
|||
$config = array();
|
||||
foreach($trans as $dbKey => $classKey) {
|
||||
if($classKey == 'homeFolderNamingRule') {
|
||||
if(strpos($this->config[$classKey], 'opt') === 0) {
|
||||
$config[$dbKey] = '';
|
||||
} else {
|
||||
if(strpos($this->config[$classKey], 'attr:') === 0) {
|
||||
$config[$dbKey] = substr($this->config[$classKey], 5);
|
||||
} else {
|
||||
$config[$dbKey] = '';
|
||||
}
|
||||
continue;
|
||||
} else if((strpos($classKey, 'ldapBase') !== false)
|
||||
|
@ -540,7 +537,7 @@ class Connection {
|
|||
'ldap_cache_ttl' => 600,
|
||||
'ldap_uuid_attribute' => 'auto',
|
||||
'ldap_override_uuid_attribute' => 0,
|
||||
'home_folder_naming_rule' => 'opt:username',
|
||||
'home_folder_naming_rule' => '',
|
||||
'ldap_turn_off_cert_check' => 0,
|
||||
'ldap_configuration_active' => 1,
|
||||
'ldap_attributes_for_user_search' => '',
|
||||
|
|
Loading…
Reference in a new issue