Commit a26b33ce authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5004 Avoiding invalid filter

Showing with 1 addition and 1 deletion
+1 -1
...@@ -103,7 +103,7 @@ class userManagement extends simpleManagement ...@@ -103,7 +103,7 @@ class userManagement extends simpleManagement
$this->filter->elements['SAMBA']['set'] = ''; $this->filter->elements['SAMBA']['set'] = '';
} }
if (empty($classes)) { if (empty($classes)) {
$this->filter->elements['FUNCTIONAL']['set'] = ''; $this->filter->elements['FUNCTIONAL']['set'] = '(objectClass=*)';
} else { } else {
/* The FUNCTIONAL filter must not use inexisting classes */ /* The FUNCTIONAL filter must not use inexisting classes */
$this->filter->elements['FUNCTIONAL']['set'] = '(!(|(objectClass='.implode(')(objectClass=', $classes).')))'; $this->filter->elements['FUNCTIONAL']['set'] = '(!(|(objectClass='.implode(')(objectClass=', $classes).')))';
......
  • bmortier @bmortier

    mentioned in issue #1588

    By coudot on 2017-09-02T15:31:43 (imported from GitLab)

    ·

    mentioned in issue #1588

    By coudot on 2017-09-02T15:31:43 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment