Hello again.
I’ve been trying to configure LDAPS for a few hours now, but I haven’t been able to do it yet.
I have also followed the following tutorial:
“Passbolt Help | Configure LDAP plugin with SSL (ldaps)”
Meanwhile LDAP and LDAPS via TLS works but only from the terminal of the Passbolt server, but it can not be configured via the GUI of the admin.
Passbolt Pro 3.5.0
root@passbolt:/etc/ssl/certs# ldapsearch -x -D "xxx" -W -H ldaps://xxx -b "xxx" -d 9
ldap_url_parse_ext(ldaps://xxx)
ldap_create
ldap_url_parse_ext(ldaps://xxx:636/??base)
Enter LDAP Password:
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP xxx:636
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying xxx:636
ldap_pvt_connect: fd: 3 tm: -1 async: 0
attempting to connect:
connect success
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({i) ber:
ber_flush2: 94 bytes to sd 3
ldap_result ld 0x5607b6292160 msgid 1
wait4msg ld 0x5607b6292160 msgid 1 (infinite timeout)
wait4msg continue ld 0x5607b6292160 msgid 1 all 1
** ld 0x5607b6292160 Connections:
* host: dc-01.bergfreunde.local port: 636 (default)
refcnt: 2 status: Connected
last used: Fri Feb 18 12:05:32 2022
What is interesting, when I specify an obviously wrong address as ldaps server I get the following error message, and here in the path it only says “ldap://” and yes ldaps://(tls) is selected
Log:
2022-02-18 07:20:31 Error: [Cake\Http\Exception\BadRequestException] The settings provided are incorrect. Failed to start TLS: Can't contact LDAP server in /usr/share/php/passbolt/plugins/Passbolt/DirectorySync/src/Controller/DirectoryS>Request URL: /directorysync/settings/test.json?api-version=v2
Referer URL: https://xxx/app/administration/users-directory
Client IP: xxxxx