mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
* LDAP/Addressbook: use accounts filter from setup for accounts addressbook too
This commit is contained in:
parent
d983e4b22e
commit
311a973385
@ -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)";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user