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

Commit d1fba82

Browse files
committed
Added missing config option.
1 parent 8c13969 commit d1fba82

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/Config/auth.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,34 @@
122122

123123
'login_attribute' => env('ADLDAP_LOGIN_ATTRIBUTE', 'samaccountname'),
124124

125+
/*
126+
|--------------------------------------------------------------------------
127+
| Windows Auth Attribute
128+
|--------------------------------------------------------------------------
129+
|
130+
| This array represents how a user is found when
131+
| using the Windows Auth Middleware.
132+
|
133+
| The key of the array represents the attribute that the user is located by.
134+
|
135+
| For example, if 'samaccountname' is the key, then your LDAP server is
136+
| queried for a user with the 'samaccountname' equal to the
137+
| $_SERVER['AUTH_USER'] variable.
138+
|
139+
| If a user is found, they are imported into your
140+
| local database, then logged in.
141+
|
142+
| The value of the array represents the 'key' of the $_SERVER
143+
| array to pull the users username from.
144+
|
145+
| For example, $_SERVER['AUTH_USER'].
146+
|
147+
| This must be an array with a key - value pair.
148+
|
149+
*/
150+
151+
'windows_auth_attribute' => ['samaccountname' => 'AUTH_USER'],
152+
125153
/*
126154
|--------------------------------------------------------------------------
127155
| Bind User to Model

0 commit comments

Comments
 (0)