Commit c75d3605 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

parent 5b84becc
......@@ -1212,6 +1212,14 @@ function auth_get_authserver($name) {
if (!empty($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;
}
......
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