Commit 89db2963 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix ldap binddn and password for proper anon usage

parent 39beb181
...@@ -1228,6 +1228,14 @@ function auth_get_authserver($name) { ...@@ -1228,6 +1228,14 @@ function auth_get_authserver($name) {
if (!empty($authcfg['ldap_port'])) { if (!empty($authcfg['ldap_port'])) {
$authcfg['ldap_full_url'] .= ":{$authcfg['ldap_port']}"; $authcfg['ldap_full_url'] .= ":{$authcfg['ldap_port']}";
} }
// make sure a user and password entry exists and are null for anonymous usage
if (empty($authcfg['ldap_binddn'])) {
$authcfg['ldap_binddn'] = null;
}
if (empty($authcfg['ldap_bindpw'])) {
$authcfg['ldap_bindpw'] = null;
}
} }
return $authcfg; return $authcfg;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment