* LDAP/Addressbook: use accounts filter from setup for accounts addressbook too

This commit is contained in:
Ralf Becker 2020-12-29 19:36:58 +02:00
parent fac0457436
commit 5bcbde4f88

View File

@ -353,6 +353,11 @@ class Ldap
$this->all_attributes = array_values(array_unique($this->all_attributes));
$this->charset = Api\Translation::charset();
// add ldap_search_filter from admin
$accounts_filter = str_replace(['%user','%domain'], ['*', $GLOBALS['egw_info']['user']['domain']],
$this->ldap_config['ldap_search_filter'] ?: '(uid=%u)');
$this->accountsFilter = "(&$this->accountsFilter$accounts_filter)";
}
/**