2020-08-20 12:33:13 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default LDAP Connection Name
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here you may specify which of the LDAP connections below you wish
|
|
|
|
| to use as your default connection for all LDAP operations. Of
|
|
|
|
| course you may add as many connections you'd like below.
|
|
|
|
|
|
|
|
|
*/
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
'default' => env('LDAP_CONNECTION', 'default'),
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| LDAP Connections
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Below you may configure each LDAP connection your application requires
|
|
|
|
| access to. Be sure to include a valid base DN - otherwise you may
|
|
|
|
| not receive any results when performing LDAP search operations.
|
|
|
|
|
|
|
|
|
*/
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
'connections' => [
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
'default' => [
|
|
|
|
'hosts' => [env('LDAP_HOST', '127.0.0.1')],
|
|
|
|
'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
|
|
|
|
'password' => env('LDAP_PASSWORD', 'secret'),
|
|
|
|
'port' => env('LDAP_PORT', 389),
|
|
|
|
'base_dn' => env('LDAP_BASE_DN', 'dc=local,dc=com'),
|
|
|
|
'timeout' => env('LDAP_TIMEOUT', 5),
|
|
|
|
'use_ssl' => env('LDAP_SSL', false),
|
|
|
|
'use_tls' => env('LDAP_TLS', false),
|
|
|
|
'name' => env('LDAP_NAME','LDAP Server'),
|
|
|
|
],
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
],
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| LDAP Logging
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| When LDAP logging is enabled, all LDAP search and authentication
|
|
|
|
| operations are logged using the default application logging
|
|
|
|
| driver. This can assist in debugging issues and more.
|
|
|
|
|
|
|
|
|
*/
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
'logging' => env('LDAP_LOGGING', true),
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| LDAP Cache
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| LDAP caching enables the ability of caching search results using the
|
|
|
|
| query builder. This is great for running expensive operations that
|
|
|
|
| may take many seconds to complete, such as a pagination request.
|
|
|
|
|
|
|
|
|
*/
|
2020-08-20 12:33:13 +00:00
|
|
|
|
2023-03-01 23:17:15 +00:00
|
|
|
'cache' => [
|
|
|
|
'enabled' => env('LDAP_CACHE', false),
|
|
|
|
'driver' => env('CACHE_DRIVER', 'file'),
|
|
|
|
'time' => env('LDAP_CACHE_TIME',5*60), // Seconds
|
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Support for attrs display order
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Use this array if you want to have your attributes displayed in a specific
|
|
|
|
| order. Case is not important.
|
|
|
|
|
|
|
|
|
| For example, "sn" will be displayed right after "givenName". All the other
|
|
|
|
| attributes that are not specified in this array will be displayed after in
|
|
|
|
| alphabetical order.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'attr_display_order' => [],
|
|
|
|
/*
|
|
|
|
'attr_display_order' => [
|
|
|
|
'givenName',
|
|
|
|
'sn',
|
|
|
|
'cn',
|
|
|
|
'displayName',
|
|
|
|
'uid',
|
|
|
|
'uidNumber',
|
|
|
|
'gidNumber',
|
|
|
|
'homeDirectory',
|
|
|
|
'mail',
|
|
|
|
'userPassword'
|
|
|
|
],
|
|
|
|
*/
|
2020-08-20 12:33:13 +00:00
|
|
|
|
|
|
|
];
|