Better ldap_schema setting detection
This commit is contained in:
parent
ec5e7fc46f
commit
6a5e6431aa
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue