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

Commit cdd98b0

Browse files
committed
Added synchronizing attributes documentation
1 parent 93e2eb5 commit cdd98b0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,12 @@ with the `login_attribute` inside your `config/adldap_auth.php` file.
101101

102102
Login a user regularly using `Auth::attempt($credentials);`. Using `Auth::user()` when a user is logged in
103103
will return your configured `App\User` model in `config/auth.php`.
104+
105+
#### Synchronizing Attributes
106+
107+
Inside your `config/adldap_auth.php` file there is a configuration option named `sync_attributes`. This is an array
108+
of attributes where the key is the User model attribute, and the value is the active directory users attribute.
109+
110+
By default, the User models `name` attribute is synchronized to the AD users `cn` attribute. This means, upon login,
111+
the users `name` attribute will be set to the active directory common name (`cn`) attribute. Feel free to add more
112+
attributes here, however be sure that your database table contains the key you've entered.

0 commit comments

Comments
 (0)