1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00
pixelfed_ynh/sources/patches/app-auth.patch
2022-05-25 02:15:30 +02:00

45 lines
1.2 KiB
Diff

--- a/config/auth.php
+++ b/config/auth.php
@@ -67,25 +67,25 @@
'providers' => [
// Comment out or remove below for LDAP
- 'users' => [
- 'driver' => 'eloquent',
- 'model' => App\User::class,
- ],
-
- // Uncomment below for LDAP
// 'users' => [
- // 'driver' => 'ldap',
- // 'model' => LdapRecord\Models\ActiveDirectory\User::class,
- // 'rules' => [],
- // 'database' => [
- // 'model' => App\User::class,
- // 'sync_passwords' => false,
- // 'sync_attributes' => [
- // 'name' => 'cn',
- // 'email' => 'mail',
- // ],
- // ],
+ // 'driver' => 'eloquent',
+ // 'model' => App\User::class,
// ],
+
+ // Uncomment below for LDAP
+ 'users' => [
+ 'driver' => 'ldap',
+ 'model' => LdapRecord\Models\ActiveDirectory\User::class,
+ 'rules' => [],
+ 'database' => [
+ 'model' => App\User::class,
+ 'sync_passwords' => false,
+ 'sync_attributes' => [
+ 'name' => 'uid',
+ 'email' => 'mail',
+ ],
+ ],
+ ],
],
/*