summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/settings.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-01-24 12:46:10 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-01-24 12:46:10 +0100
commitb084ed6a428470d44a98b70a5fc22341edb4165a (patch)
treeb85d8b35d7d81b8b3c75855b65617e209ca39be6 /apps/user_ldap/settings.php
parent319dcd45e1cecb9de98d8bb24a3a71cb0eee6a8a (diff)
downloadnextcloud-server-b084ed6a428470d44a98b70a5fc22341edb4165a.tar.gz
nextcloud-server-b084ed6a428470d44a98b70a5fc22341edb4165a.zip
LDAP: clean up, save configuration is now handled by Ajax
Diffstat (limited to 'apps/user_ldap/settings.php')
-rw-r--r--apps/user_ldap/settings.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php
index 57d370601cf..a6e8bd5512b 100644
--- a/apps/user_ldap/settings.php
+++ b/apps/user_ldap/settings.php
@@ -38,37 +38,6 @@ $params = array('ldap_host', 'ldap_port', 'ldap_backup_host',
OCP\Util::addscript('user_ldap', 'settings');
OCP\Util::addstyle('user_ldap', 'settings');
-if($_POST) {
- $clearCache = false;
- foreach($params as $param) {
- if(isset($_POST[$param])) {
- $clearCache = true;
- if('ldap_agent_password' == $param) {
- OCP\Config::setAppValue('user_ldap', $param, base64_encode($_POST[$param]));
- } elseif('home_folder_naming_rule' == $param) {
- $value = empty($_POST[$param]) ? 'opt:username' : 'attr:'.$_POST[$param];
- OCP\Config::setAppValue('user_ldap', $param, $value);
- } else {
- OCP\Config::setAppValue('user_ldap', $param, $_POST[$param]);
- }
- }
- elseif('ldap_tls' == $param) {
- // unchecked checkboxes are not included in the post paramters
- OCP\Config::setAppValue('user_ldap', $param, 0);
- }
- elseif('ldap_nocase' == $param) {
- OCP\Config::setAppValue('user_ldap', $param, 0);
- }
- elseif('ldap_turn_off_cert_check' == $param) {
- OCP\Config::setAppValue('user_ldap', $param, 0);
- }
- }
- if($clearCache) {
- $ldap = new \OCA\user_ldap\lib\Connection();
- $ldap->clearCache();
- }
-}
-
// fill template
$tmpl = new OCP\Template('user_ldap', 'settings');
foreach($params as $param) {