Better ldap_schema setting detection

This commit is contained in:
Ben Tyger 2021-05-19 13:38:24 -04:00
parent ec5e7fc46f
commit 6a5e6431aa

View file

@ -35,7 +35,7 @@ abstract class AuthController extends Controller
return false;
}
// Building LDAP URI
$ldapSchema=array_key_exists('schema', $this->config['ldap']) ?
$ldapSchema=(@is_string(['ldap']['schema'])) ?
strtolower($this->config['ldap']['schema']) : 'ldap';
$ldapURI="$ldapSchema://".$this->config['ldap']['host'].':'.$this->config['ldap']['port'];