mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
fix ldap ad authentication filter query mechanism (#7441)
This commit is contained in:
parent
83200d3cbd
commit
b037d0efdd
|
@ -93,8 +93,12 @@ class Ldap extends Model
|
||||||
|
|
||||||
\Log::debug('Attempting to login using distinguished name:'.$userDn);
|
\Log::debug('Attempting to login using distinguished name:'.$userDn);
|
||||||
|
|
||||||
|
|
||||||
$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