['email' => 'email'], /* |-------------------------------------------------------------------------- | Login Fallback |-------------------------------------------------------------------------- | | The login fallback option allows you to login as a user located on the | local database if active directory authentication fails. | | Set this to true if you would like to enable it. | */ 'login_fallback' => false, /* |-------------------------------------------------------------------------- | Password Key |-------------------------------------------------------------------------- | | The password key is the name of the input array key located inside | the user input array given to the auth driver. | | Change this if you change your password fields input name. | */ 'password_key' => 'password', /* |-------------------------------------------------------------------------- | Login Attribute |-------------------------------------------------------------------------- | | The login attribute is the name of the active directory user property | that you use to log users in. For example, if your company uses | email, then insert `mail`. | */ 'login_attribute' => 'name', /* |-------------------------------------------------------------------------- | Bind User to Model |-------------------------------------------------------------------------- | | The bind User to Model option allows you to access the Adldap user model | instance on your laravel database model to be able run operations | or retrieve extra attributes on the Adldap user model instance. | | If this option is true, you must insert the trait: | | `Adldap\Laravel\Traits\AdldapUserModelTrait` | | Onto your User model configured in `config/auth.php`. | | Then use `Auth::user()->adldapUser` to access. | */ 'bind_user_to_model' => true, /* |-------------------------------------------------------------------------- | Sync Attributes |-------------------------------------------------------------------------- | | Attributes specified here will be added / replaced on the user model | upon login, automatically synchronizing and keeping the attributes | up to date. | | The array key represents the Laravel model key, and the value | represents the Active Directory attribute to set it to. | | The users email is already synchronized and does not need to be | added to this array. | */ 'sync_attributes' => [ 'name' => 'cn', ], /* |-------------------------------------------------------------------------- | Select Attributes |-------------------------------------------------------------------------- | | Attributes to select upon the user on authentication and binding. | | If no attributes are given inside the array, all attributes on the | user are selected. | | ** Note ** : Keep in mind you must include attributes that you would | like to synchronize, as well as your login attribute. | */ 'select_attributes' => [ // ], ];