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

Fixes #3240 Fixed GenericDialogAttribute and UsersAttribute when store_attr is not dn

parent 77364b2c
......@@ -334,6 +334,7 @@ class GenericDialogAttribute extends DialogAttribute
if ($this->store_attr == 'dn') {
$ldap->cat($value, $this->ldapAttributesToGet());
} else {
$ldap->cd($this->plugin->config->current['BASE']);
$ldap->search('('.$this->store_attr.'='.$value.')', $this->ldapAttributesToGet());
}
$this->fillDisplayValueFrom($i, $ldap->fetch());
......
Markdown is supported
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