summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/appinfo
diff options
context:
space:
mode:
authorLennart Rosam <hello@takuto.de>2015-08-19 17:55:21 +0200
committerLennart Rosam <hello@takuto.de>2015-08-19 17:55:21 +0200
commitfdf1a941b760582c43015204add732d37cf94e0c (patch)
tree9320d1d8c17a13f471b5b804b5fb947adf21c876 /apps/user_ldap/appinfo
parent45fba849a9ec4c0ae0673d9314d5c941def6460e (diff)
downloadnextcloud-server-fdf1a941b760582c43015204add732d37cf94e0c.tar.gz
nextcloud-server-fdf1a941b760582c43015204add732d37cf94e0c.zip
Add database update routine and bump version to 0.6.2
Diffstat (limited to 'apps/user_ldap/appinfo')
-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