mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSldapObject : Modification de la méthode getObjetFilter() pour permettre
de prendre en compte un filtre positionné par l'utilisateur dans la configuration
This commit is contained in:
parent
e9d3b321d8
commit
467510201e
1 changed files with 7 additions and 1 deletions
|
@ -617,8 +617,14 @@ class LSldapObject {
|
|||
*/
|
||||
function getObjectFilter() {
|
||||
if(!isset($this -> config['objectclass'])) return;
|
||||
foreach ($this -> config['objectclass'] as $class)
|
||||
$filter="(&";
|
||||
foreach ($this -> config['objectclass'] as $class) {
|
||||
$filter.='(objectClass='.$class.')';
|
||||
}
|
||||
$filter.=')';
|
||||
if ($this -> config['filter']) {
|
||||
$filter="(&(".$this -> config['filter'].")$filter)";
|
||||
}
|
||||
return $filter;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue