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

Commit ed34c10

Browse files
committed
Reworking configuration for objectguid database requirement.
This will give us the flexibility of changing LDAP usernames and syncing them properly if the username changes.
1 parent 293721c commit ed34c10

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/Config/auth.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104
],
105105

106-
'usernames' => [
106+
'identifiers' => [
107107

108108
/*
109109
|--------------------------------------------------------------------------
@@ -133,6 +133,8 @@
133133

134134
'ldap' => [
135135

136+
'id' => 'objectguid',
137+
136138
'discover' => 'userprincipalname',
137139

138140
'authenticate' => 'distinguishedname',
@@ -153,7 +155,13 @@
153155
|
154156
*/
155157

156-
'eloquent' => 'email',
158+
'database' => [
159+
160+
'id_column' => 'objectguid',
161+
162+
'username_column' => 'email',
163+
164+
],
157165

158166
/*
159167
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)