diff --git a/plugins/auth_ldap/init.php b/plugins/auth_ldap/init.php index 8700de6..a79191e 100644 --- a/plugins/auth_ldap/init.php +++ b/plugins/auth_ldap/init.php @@ -330,7 +330,7 @@ function authenticate($login, $password) { } */ //Searching for user - $filterObj = str_replace('???', ldap_escape($login), LDAP_AUTH_SEARCHFILTER); + $filterObj = str_replace('???', $this->ldap_escape($login), LDAP_AUTH_SEARCHFILTER); $searchResults = @ldap_search($ldapConn, $this->_baseDN, $filterObj, array('displayName', 'title', 'sAMAccountName'), 0, 0, 0); if ($searchResults === FALSE) { $this->_log('LDAP Search Failed on base \'' . $this->_baseDN . '\' for \'' . $filterObj . '\'', E_USER_ERROR);