summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/user_ldap/appinfo/update.php15
-rw-r--r--apps/user_ldap/appinfo/version2
2 files changed, 16 insertions, 1 deletions
diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php
index b904bce072e..f369c5d0676 100644
--- a/apps/user_ldap/appinfo/update.php
+++ b/apps/user_ldap/appinfo/update.php
@@ -24,3 +24,18 @@ $installedVersion = \OC::$server->getConfig()->getAppValue('user_ldap', 'install
if (version_compare($installedVersion, '0.6.1', '<')) {
\OC::$server->getConfig()->setAppValue('user_ldap', 'enforce_home_folder_naming_rule', false);
}
+
+if(version_compare($installedVersion, '0.6.2', '<')) {
+ // Remove LDAP case insensitive setting from DB as it is no longer beeing used.
+ $helper = new \OCA\user_ldap\lib\Helper();
+ $prefixes = $helper->getServerConfigurationPrefixes();
+
+ // Add empty prefix if only one serverconfig exists
+ if(count($prefixes) === 0) {
+ $prefixes[] = "";
+ }
+
+ foreach($prefixes as $prefix) {
+ \OC::$server->getConfig()->deleteAppValue('user_ldap', $prefix . "ldap_nocase");
+ }
+}
diff --git a/apps/user_ldap/appinfo/version b/apps/user_ldap/appinfo/version
index ee6cdce3c29..b6160487433 100644
--- a/apps/user_ldap/appinfo/version
+++ b/apps/user_ldap/appinfo/version
@@ -1 +1 @@
-0.6.1
+0.6.2