From ff9ecc8a5197138726eb2a756c70399afb5eb97e Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Tue, 19 Nov 2013 23:58:08 +0100
Subject: LDAP Wizard: proper behaviour for raw filter input. remember the
 editing mode and compose filter only when desired.

---
 apps/user_ldap/ajax/wizard.php | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'apps/user_ldap/ajax/wizard.php')

diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php
index e580c097867..daad0070119 100644
--- a/apps/user_ldap/ajax/wizard.php
+++ b/apps/user_ldap/ajax/wizard.php
@@ -53,8 +53,11 @@ switch($action) {
 	case 'determineGroupsForGroups':
 	case 'determineAttributes':
 	case 'getUserListFilter':
+	case 'getLoginFilterMode':
 	case 'getUserLoginFilter':
+	case 'getUserFilterMode':
 	case 'getGroupFilter':
+	case 'getGroupFilterMode':
 	case 'countUsers':
 	case 'countGroups':
 		try {
-- 
cgit v1.2.3


From ce1318c9f109296fcdf7365178a96bc5de82e35a Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Wed, 20 Nov 2013 15:56:25 +0100
Subject: LDAP Wizard: clear the cache on save so changes have immediate effect

---
 apps/user_ldap/ajax/wizard.php | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'apps/user_ldap/ajax/wizard.php')

diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php
index daad0070119..ad75a384369 100644
--- a/apps/user_ldap/ajax/wizard.php
+++ b/apps/user_ldap/ajax/wizard.php
@@ -90,6 +90,9 @@ switch($action) {
 			exit;
 		}
 		$configuration->saveConfiguration();
+		//clear the cache on save
+		$connection = new \OCA\user_ldap\lib\Connection($ldapWrapper, $prefix);
+		$connection->clearCache();
 		OCP\JSON::success();
 		break;
 	default:
-- 
cgit v1.2.3