mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge pull request #8730 from winstan/patch-1
Fixed #8699: exclude blank LDAP attributes from searches
This commit is contained in:
commit
5ad6234584
|
@ -398,7 +398,7 @@ class LdapAd extends LdapAdConfiguration
|
||||||
{
|
{
|
||||||
/** @var Schema $schema */
|
/** @var Schema $schema */
|
||||||
$schema = new $this->ldapConfig['schema'];
|
$schema = new $this->ldapConfig['schema'];
|
||||||
return [
|
return array_values(array_filter([
|
||||||
$this->ldapSettings['ldap_username_field'],
|
$this->ldapSettings['ldap_username_field'],
|
||||||
$this->ldapSettings['ldap_fname_field'],
|
$this->ldapSettings['ldap_fname_field'],
|
||||||
$this->ldapSettings['ldap_lname_field'],
|
$this->ldapSettings['ldap_lname_field'],
|
||||||
|
@ -409,7 +409,7 @@ class LdapAd extends LdapAdConfiguration
|
||||||
$schema->userAccountControl(),
|
$schema->userAccountControl(),
|
||||||
$schema->title(),
|
$schema->title(),
|
||||||
$schema->telephone(),
|
$schema->telephone(),
|
||||||
];
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue