Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit abf3d00

Browse files
committed
Rework password configuration options
1 parent e2b290d commit abf3d00

File tree

1 file changed

+31
-24
lines changed

1 file changed

+31
-24
lines changed

src/Config/auth.php

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,37 @@
176176

177177
],
178178

179+
'passwords' => [
180+
181+
/*
182+
|--------------------------------------------------------------------------
183+
| Password Sync
184+
|--------------------------------------------------------------------------
185+
|
186+
| The password sync option allows you to automatically synchronize
187+
| users AD passwords to your local database. These passwords are
188+
| hashed natively by laravel using the bcrypt() method.
189+
|
190+
| Enabling this option would also allow users to login to their
191+
| accounts using the password last used when an AD connection
192+
| was present.
193+
|
194+
| If this option is disabled, the local user account is applied
195+
| a random 16 character hashed password, and will lose access
196+
| to this account upon loss of AD connectivity.
197+
|
198+
| This option must be true or false and is only applicable
199+
| to the DatabaseUserProvider.
200+
|
201+
*/
202+
203+
'sync' => env('ADLDAP_PASSWORD_SYNC', true),
204+
205+
206+
'column' => 'password',
207+
208+
],
209+
179210
/*
180211
|--------------------------------------------------------------------------
181212
| Login Fallback
@@ -193,30 +224,6 @@
193224

194225
'login_fallback' => env('ADLDAP_LOGIN_FALLBACK', false),
195226

196-
/*
197-
|--------------------------------------------------------------------------
198-
| Password Sync
199-
|--------------------------------------------------------------------------
200-
|
201-
| The password sync option allows you to automatically synchronize
202-
| users AD passwords to your local database. These passwords are
203-
| hashed natively by laravel using the bcrypt() method.
204-
|
205-
| Enabling this option would also allow users to login to their
206-
| accounts using the password last used when an AD connection
207-
| was present.
208-
|
209-
| If this option is disabled, the local user account is applied
210-
| a random 16 character hashed password, and will lose access
211-
| to this account upon loss of AD connectivity.
212-
|
213-
| This option must be true or false and is only applicable
214-
| to the DatabaseUserProvider.
215-
|
216-
*/
217-
218-
'password_sync' => env('ADLDAP_PASSWORD_SYNC', true),
219-
220227
/*
221228
|--------------------------------------------------------------------------
222229
| Windows Auth Attribute

0 commit comments

Comments
 (0)