Added missing ldap port the 2nd new LDAP() call

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-09-09 14:53:29 +00:00
parent 1ea62b8446
commit eae385616f

View File

@ -221,7 +221,7 @@ class ModelUserAuth extends Model {
if(isset($query->row['dn']) && $query->row['dn']) {
$a = $query->row;
$ldap_auth = new LDAP($ldap_host, $a['dn'], $password);
$ldap_auth = new LDAP($ldap_host, $ldap_port, $a['dn'], $password);
if(LOG_LEVEL >= NORMAL) { syslog(LOG_INFO, "ldap auth against '" . $ldap_host . "', dn: '" . $a['dn'] . "', result: " . $ldap_auth->is_bind_ok()); }