|
11 | 11 | | |
12 | 12 | | You must specify connections in your `config/adldap.php` configuration file. |
13 | 13 | | |
| 14 | + | This must be a string. |
| 15 | + | |
14 | 16 | */ |
15 | 17 |
|
16 | 18 | 'connection' => env('ADLDAP_CONNECTION', 'default'), |
|
30 | 32 | | by their emails, then change `samaccountname` to `mail`. |
31 | 33 | | and `username` to `email`. |
32 | 34 | | |
| 35 | + | This must be an array with a key - value pair. |
| 36 | + | |
33 | 37 | */ |
34 | 38 |
|
35 | 39 | 'username_attribute' => ['username' => 'samaccountname'], |
|
58 | 62 | | |
59 | 63 | | Set this to true if you would like to enable it. |
60 | 64 | | |
| 65 | + | This option must be true or false. |
| 66 | + | |
61 | 67 | */ |
62 | 68 |
|
63 | 69 | 'login_fallback' => env('ADLDAP_LOGIN_FALLBACK', false), |
|
72 | 78 | | |
73 | 79 | | Change this if you change your password fields input name. |
74 | 80 | | |
| 81 | + | This option must be a string. |
| 82 | + | |
75 | 83 | */ |
76 | 84 |
|
77 | 85 | 'password_key' => env('ADLDAP_PASSWORD_KEY', 'password'), |
|
85 | 93 | | that you use to log users in. For example, if your company uses |
86 | 94 | | email, then insert `mail`. |
87 | 95 | | |
| 96 | + | This option must be a string. |
| 97 | + | |
88 | 98 | */ |
89 | 99 |
|
90 | 100 | 'login_attribute' => env('ADLDAP_LOGIN_ATTRIBUTE', 'samaccountname'), |
|
94 | 104 | | Bind User to Model |
95 | 105 | |-------------------------------------------------------------------------- |
96 | 106 | | |
97 | | - | The bind User to Model option allows you to access the Adldap user model |
| 107 | + | The bind user to model option allows you to access the Adldap user model |
98 | 108 | | instance on your laravel database model to be able run operations |
99 | 109 | | or retrieve extra attributes on the Adldap user model instance. |
100 | 110 | | |
|
106 | 116 | | |
107 | 117 | | Then use `Auth::user()->adldapUser` to access. |
108 | 118 | | |
| 119 | + | This option must be true or false. |
| 120 | + | |
109 | 121 | */ |
110 | 122 |
|
111 | 123 | 'bind_user_to_model' => env('ADLDAP_BIND_USER_TO_MODEL', false), |
112 | 124 |
|
| 125 | + /* |
| 126 | + |-------------------------------------------------------------------------- |
| 127 | + | Bind As User |
| 128 | + |-------------------------------------------------------------------------- |
| 129 | + | |
| 130 | + | The bind as user option will bind to your AD server as the |
| 131 | + | authenticated user. This is useful if you don't want to |
| 132 | + | provide administrator credentials. |
| 133 | + | |
| 134 | + | This option must be true or false. |
| 135 | + | |
| 136 | + */ |
| 137 | + |
| 138 | + 'bind_as_user' => env('ADLDAP_BIND_AS_USER', false), |
| 139 | + |
113 | 140 | /* |
114 | 141 | |-------------------------------------------------------------------------- |
115 | 142 | | Sync Attributes |
|
0 commit comments