1
0

ldap.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default LDAP Connection Name
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you may specify which of the LDAP connections below you wish
  9. | to use as your default connection for all LDAP operations. Of
  10. | course you may add as many connections you'd like below.
  11. |
  12. */
  13. 'default' => env('LDAP_CONNECTION', 'default'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | LDAP Connections
  17. |--------------------------------------------------------------------------
  18. |
  19. | Below you may configure each LDAP connection your application requires
  20. | access to. Be sure to include a valid base DN - otherwise you may
  21. | not receive any results when performing LDAP search operations.
  22. |
  23. */
  24. 'connections' => [
  25. 'default' => [
  26. 'hosts' => [env('LDAP_HOST', '127.0.0.1')],
  27. 'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
  28. 'password' => env('LDAP_PASSWORD', 'secret'),
  29. 'port' => env('LDAP_PORT', 389),
  30. 'base_dn' => env('LDAP_BASE_DN', 'dc=local,dc=com'),
  31. 'timeout' => env('LDAP_TIMEOUT', 5),
  32. 'use_ssl' => env('LDAP_SSL', false),
  33. 'use_tls' => env('LDAP_TLS', false),
  34. ],
  35. ],
  36. /*
  37. |--------------------------------------------------------------------------
  38. | LDAP Logging
  39. |--------------------------------------------------------------------------
  40. |
  41. | When LDAP logging is enabled, all LDAP search and authentication
  42. | operations are logged using the default application logging
  43. | driver. This can assist in debugging issues and more.
  44. |
  45. */
  46. 'logging' => env('LDAP_LOGGING', true),
  47. /*
  48. |--------------------------------------------------------------------------
  49. | LDAP Cache
  50. |--------------------------------------------------------------------------
  51. |
  52. | LDAP caching enables the ability of caching search results using the
  53. | query builder. This is great for running expensive operations that
  54. | may take many seconds to complete, such as a pagination request.
  55. |
  56. */
  57. 'cache' => [
  58. 'enabled' => env('LDAP_CACHE', false),
  59. 'driver' => env('CACHE_DRIVER', 'file'),
  60. ],
  61. ];