From 0aded959858cd350d3c608965cf7144a2d7936f4 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Tue, 5 Mar 2019 12:14:21 -0600 Subject: [PATCH] Fix ldap/ad auth anon-bind (#9905) --- LibreNMS/Authentication/ActiveDirectoryAuthorizer.php | 2 +- LibreNMS/Authentication/LdapAuthorizer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LibreNMS/Authentication/ActiveDirectoryAuthorizer.php b/LibreNMS/Authentication/ActiveDirectoryAuthorizer.php index e3a926b169..f0b804536f 100644 --- a/LibreNMS/Authentication/ActiveDirectoryAuthorizer.php +++ b/LibreNMS/Authentication/ActiveDirectoryAuthorizer.php @@ -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(); diff --git a/LibreNMS/Authentication/LdapAuthorizer.php b/LibreNMS/Authentication/LdapAuthorizer.php index e0d67d0129..c5086474a1 100644 --- a/LibreNMS/Authentication/LdapAuthorizer.php +++ b/LibreNMS/Authentication/LdapAuthorizer.php @@ -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);