mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
* LDAP/Addressbook: use accounts filter from setup for accounts addressbook too
This commit is contained in:
parent
fac0457436
commit
5bcbde4f88
@ -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)";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user