From 03c2eba9e35faee73c0dc6dc703b1dad82267d51 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 23 Feb 2025 22:30:32 +1100 Subject: [PATCH] Add a STARTTLS example to the configuration file --- config/ldap.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/ldap.php b/config/ldap.php index f18a8cbc..2fa7440e 100644 --- a/config/ldap.php +++ b/config/ldap.php @@ -48,10 +48,22 @@ return [ 'base_dn' => env('LDAP_BASE_DN', 'dc=local,dc=com'), 'timeout' => env('LDAP_TIMEOUT', 5), 'use_ssl' => env('LDAP_SSL', true), - 'use_tls' => env('LDAP_TLS', true), + 'use_tls' => env('LDAP_TLS', false), 'name' => env('LDAP_NAME','LDAPS Server'), ], + 'openldaptls' => [ + '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', true), + 'name' => env('LDAP_NAME','LDAP-TLS Server'), + ], + 'opendj' => [ 'hosts' => ['opendj'], 'username' => 'cn=Directory Manager',