Fix bug where LDAP (fulltext) search didn't work without 'search_fields' in config (#8874)

also fix some PHP warnings
This commit is contained in:
Aleksander Machniak
2023-04-02 11:31:39 +02:00
parent c81c27e924
commit d1d29e7c77
3 changed files with 29 additions and 27 deletions

View File

@@ -1113,10 +1113,12 @@ $config['ldap_public']['Verisign'] = [
// to be one of the search_fields, the base of base_dn is appended
// to the RDN to insert into the LDAP directory.
'LDAP_rdn' => 'cn',
// The required fields needed to build a new contact as required by
// The required attributes needed to build a new contact as required by
// the object classes (can include additional fields not required by the object classes).
'required_fields' => ['cn', 'sn', 'mail'],
'search_fields' => ['mail', 'cn'], // fields to search in
// The attributes used when searching with "All fields" option
// If empty, attributes for name, surname, firstname and email fields will be used
'search_fields' => ['mail', 'cn'],
// mapping of contact fields to directory attributes
// 1. for every attribute one can specify the number of values (limit) allowed.
// default is 1, a wildcard * means unlimited