Commit b9aa5fad authored by Côme Bernigaud's avatar Côme Bernigaud
Browse files

Fixes #3334 Users are now using simpleManagement

Conflicts:
	plugins/admin/users/class_userManagement.inc
parent 2637ffb9
......@@ -173,4 +173,21 @@ class ldapFilterLeaf extends ldapFilter
}
}
function fdTemplateFilter($filter)
{
if ($filter instanceof ldapFilterLeaf) {
if ($filter->operator == '=') {
$filter->subparts[1] = $filter->subparts[0].':'.$filter->subparts[1];
$filter->subparts[0] = 'fdTemplateField';
} else {
trigger_error('Not able to adapt this filter for templates');
}
} else {
foreach ($filter->subparts as &$subpart) {
$subpart = fdTemplateFilter($subpart);
}
}
return $filter;
}
?>
......@@ -17,6 +17,7 @@
<attribute>sn</attribute>
<attribute>uid</attribute>
<attribute>userPassword</attribute>
<attribute>fdTemplateField</attribute>
</query>
<scope>auto</scope>
</search>
......
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