mirror of
https://github.com/filegator/filegator.git
synced 2025-08-13 05:14:00 +02:00
Adds an attributes parameter to the ldap adapter (#184)
* Adds an attribute parameter to the ldap adapter Using this parameter is much more efficient than the default action (which is to return all attributes and their associated values). The use of this parameter should therefore be considered good practice. (from https://www.php.net/manual/en/function.ldap-search.php) * Updates the docs about ldap_attributes parameter * Enhances portuguese translation * Update backend/Services/Auth/Adapters/LDAP.php Commit suggestion
This commit is contained in:
@@ -100,6 +100,7 @@ Replace your current Auth handler in `configuration.php` file like this:
|
||||
'ldap_bindPass'=>'ldapbinduser-password',
|
||||
'ldap_baseDN'=>'cn=users,dc=ldap,dc=example,dc=com',
|
||||
'ldap_filter'=>'(uid=*)', //ex: 'ldap_filter'=>'(&(uid=*)(memberOf=cn=administrators,cn=groups,dc=ldap,dc=example,dc=com))',
|
||||
'ldap_attributes' => ["uid","cn","dn"],
|
||||
'ldap_userFieldMapping'=> [
|
||||
'username' =>'uid',
|
||||
'name' =>'cn',
|
||||
|
Reference in New Issue
Block a user