diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-02-22 21:26:07 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-02-22 21:26:07 +0100 |
commit | e4e915fa3b461083f30afc4f17c627cccafcb0f8 (patch) | |
tree | 32097af3095c0860ba9c6c2b9b97753eb84a43ee /apps/user_ldap/lib | |
parent | 0a6e9933fc669a95d874985cea82ed0c8591a025 (diff) | |
download | nextcloud-server-e4e915fa3b461083f30afc4f17c627cccafcb0f8.tar.gz nextcloud-server-e4e915fa3b461083f30afc4f17c627cccafcb0f8.zip |
LDAP: simplify default for user home settings, fixes wrong display of default value in settings
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/connection.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php index abbc133038c..6643428afe4 100644 --- a/apps/user_ldap/lib/connection.php +++ b/apps/user_ldap/lib/connection.php @@ -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' => '', |