mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix ldap/ad auth anon-bind (#9905)
This commit is contained in:
@ -209,7 +209,7 @@ class ActiveDirectoryAuthorizer extends AuthorizerBase
|
||||
ldap_set_option($this->ldap_connection, LDAP_OPT_PROTOCOL_VERSION, 3);
|
||||
}
|
||||
|
||||
public function bind($credentials)
|
||||
public function bind($credentials = [])
|
||||
{
|
||||
if (!$this->ldap_connection) {
|
||||
$this->connect();
|
||||
|
@ -322,7 +322,7 @@ class LdapAuthorizer extends AuthorizerBase
|
||||
}
|
||||
}
|
||||
|
||||
public function bind($credentials)
|
||||
public function bind($credentials = [])
|
||||
{
|
||||
if (Config::get('auth_ldap_debug')) {
|
||||
ldap_set_option(null, LDAP_OPT_DEBUG_LEVEL, 7);
|
||||
|
Reference in New Issue
Block a user