summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-21 15:48:16 +0100
committerSimon Rettberg2016-01-21 15:48:16 +0100
commit12014a2c269715aae8bfdd646be9a7e43d9726c1 (patch)
tree77813cccbf71b043c094ebb48040a9f5760f6454 /inc
parent[backup/restore] 3s -> 30s (diff)
downloadslx-admin-12014a2c269715aae8bfdd646be9a7e43d9726c1.tar.gz
slx-admin-12014a2c269715aae8bfdd646be9a7e43d9726c1.tar.xz
slx-admin-12014a2c269715aae8bfdd646be9a7e43d9726c1.zip
[adauth/ldapauth] Prevent non-string value (false) from being used as certificate
Diffstat (limited to 'inc')
-rw-r--r--inc/configmodule/adauth.inc.php3
-rw-r--r--inc/configmodule/ldapauth.inc.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/inc/configmodule/adauth.inc.php b/inc/configmodule/adauth.inc.php
index 360194f1..a8f5e88a 100644
--- a/inc/configmodule/adauth.inc.php
+++ b/inc/configmodule/adauth.inc.php
@@ -30,6 +30,9 @@ class ConfigModule_AdAuth extends ConfigModule
$config['proxyport'] = 3100 + $this->id();
$config['filename'] = $tgz;
$config['moduleid'] = $this->id();
+ if (isset($config['certificate']) && !is_string($config['certificate'])) {
+ unset($config['certificate']);
+ }
return Taskmanager::submit('CreateLdapConfig', $config);
}
diff --git a/inc/configmodule/ldapauth.inc.php b/inc/configmodule/ldapauth.inc.php
index da9cd6fc..d334a2f5 100644
--- a/inc/configmodule/ldapauth.inc.php
+++ b/inc/configmodule/ldapauth.inc.php
@@ -31,6 +31,9 @@ class ConfigModule_LdapAuth extends ConfigModule
$config['filename'] = $tgz;
$config['moduleid'] = $this->id();
$config['plainldap'] = true;
+ if (isset($config['certificate']) && !is_string($config['certificate'])) {
+ unset($config['certificate']);
+ }
return Taskmanager::submit('CreateLdapConfig', $config);
}