Update application/security/LoginManager.php
Co-authored-by: ArthurHoaro <arthur@hoa.ro>
This commit is contained in:
parent
9ba6982ea3
commit
a69cfe0dd2
1 changed files with 6 additions and 1 deletions
|
@ -206,7 +206,12 @@ public function checkCredentialsFromLdap($login, $password, $connect = null, $bi
|
||||||
{
|
{
|
||||||
$connect = $connect ?? function($host) { return ldap_connect($host); };
|
$connect = $connect ?? function($host) { return ldap_connect($host); };
|
||||||
$bind = $bind ?? function($handle, $dn, $password) { return ldap_bind($handle, $dn, $password); };
|
$bind = $bind ?? function($handle, $dn, $password) { return ldap_bind($handle, $dn, $password); };
|
||||||
return $bind($connect($this->configManager->get('ldap.host')), sprintf($this->configManager->get('ldap.dn'), $login), $password);
|
|
||||||
|
return $bind(
|
||||||
|
$connect($this->configManager->get('ldap.host')),
|
||||||
|
sprintf($this->configManager->get('ldap.dn'), $login),
|
||||||
|
$password
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue