Enable login by any attribute - defaults to uid.

Implements #253
This commit is contained in:
2024-01-08 14:54:00 +11:00
parent ef355e8193
commit 74bd996f7a
5 changed files with 31 additions and 4 deletions

View File

@@ -109,6 +109,7 @@ return [
* setup.
*/
'login' => [
'attr' => [env('LDAP_LOGIN_ATTR','uid') => env('LDAP_LOGIN_ATTR_DESC','User ID')], // Attribute used to find user for login
'objectclass' => explode(',',env('LDAP_LOGIN_OBJECTCLASS', 'posixAccount')), // Objectclass that users must contain to login
],