Quick search
Note
Configuration file: white-pages/conf/config.inc.local.php
The quick search feature allows to search on multiple attributes (attribute1 or attribute2 or …) with a substring matching (attribute=*query*) by default or an exact matching, see $quick_search_use_substring_match below. The quick search input is located in menu bar.
Activation
Enable or disable this feature :
$use_quick_search = true;
Search filter
Define on which LDAP attributes the search will be done :
$quick_search_attributes = array('uid', 'cn', 'mail');
Note
With this example, the search filter for query test
will be (|(uid=*test*)(cn=*test*)(mail=*test*))
Exact matching
By default, as shown in the example above, the query is used as substring match. You can change this by forcing exact matching :
$quick_search_use_substring_match = false;
Note
With this example, the search filter for query test
will be (|(uid=test)(cn=test)(mail=test))