mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(ldap) log bind errors to syslog, closes https://github.com/opnsense/core/issues/669
This commit is contained in:
parent
0a932431d6
commit
add2678bd5
@ -219,6 +219,8 @@ class LDAP implements IAuthConnector
|
||||
$bindResult = @ldap_bind($this->ldapHandle, $userdn, $password);
|
||||
if ($bindResult) {
|
||||
return true;
|
||||
} else {
|
||||
syslog(LOG_ERR, 'LDAP bind error (' . ldap_error($this->ldapHandle).')');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user