Commit 5ef37417 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

SetAttributes should also support unicity setting

parent a6988dd7
......@@ -428,7 +428,11 @@ class Attribute
}
}
$ldap->cd($base);
$filter = "(".$this->getLdapName()."=".$value.")";
if (is_array($value)) {
$filter = '(|('.$this->getLdapName().'='.join(')('.$this->getLdapName().'=', $value).'))';
} else {
$filter = '('.$this->getLdapName().'='.$value.')';
}
$pluginFilter = $this->plugin->getObjectClassFilter();
if (!empty($pluginFilter)) {
$filter = "(&$pluginFilter$filter)";
......
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