mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
fix ldap ad authentication filter query mechanism (#7441)
This commit is contained in:
parent
83200d3cbd
commit
b037d0efdd
|
@ -95,6 +95,10 @@ class Ldap extends Model
|
||||||
|
|
||||||
|
|
||||||
$filterQuery = $settings->ldap_auth_filter_query . $username;
|
$filterQuery = $settings->ldap_auth_filter_query . $username;
|
||||||
|
$filter = Setting::getSettings()->ldap_filter;
|
||||||
|
$filterQuery = "({$filter}({$filterQuery}))";
|
||||||
|
|
||||||
|
\Log::debug('Filter query: '.$filterQuery);
|
||||||
|
|
||||||
|
|
||||||
if (!$ldapbind = @ldap_bind($connection, $userDn, $password)) {
|
if (!$ldapbind = @ldap_bind($connection, $userDn, $password)) {
|
||||||
|
|
Loading…
Reference in a new issue