* 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 d983e4b22e
commit 311a973385

View File

@ -343,6 +343,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)";
}
/**