[ EspoCRM 9.1.7, php 8.3.6, mysql 8.0.42-0ubuntu0.24.04.2; plugin Ebla Multiple Link Pro 3.50.1 ]
I have changed authentication method to LDAP and filled in all necessary Information, including security -> SSL. Press button "Test Connection" gives message "The connection successfully established". So everything looks good so far.
Click on save will throw "Error 500". The UI stops working. I can only get rid of the error by changing authenticationMethod in config.php to 'authenticationMethod' => 'Espo'.
In the logs (DEBUG mode), I find lines like those:
[2025-07-18 14:09:24] DEBUG: API (81) 0x51 (Can't contact LDAP server; getLastError: could not call ldap_get_option because LDAP resource was not of type resource): ldap://my-ldap-server:636; POST /Ldap/action/testConnection; Input data: {"host":"my-ldap-server","port":"636","useSsl":null,"us eStartTls":null,"username":"CN=ldap-espocrma,OU=spez,OU=##,DC=ad,DC=##,DC=de","bindReq uiresDn":false,"accountCanonicalForm":"Username"}; Route pattern: /{controller}/action/{action}; Route params: Array ( [controller] => Ldap [action] => testConnection )
[2025-07-18 14:09:24] ERROR: (81) 0x51 (Can't contact LDAP server; getLastError: could not call ldap_get_option because LDAP resource was not of type resource): ldap://my-ldap-server:636 :: POST /Ldap/action/testConnection :: /var/www/html/espo9/vendor/laminas/laminas-ldap/src/Ldap.php(1037)
[2025-07-18 14:09:25] DEBUG: API (0) Could not load 'user' service.; GET /PopupNotification/action/grouped; Route pattern: /{controller}/action/{action}; Route params: Array ( [controller] => PopupNotification [action] => grouped )
[2025-07-18 14:09:25] CRITICAL: (0) Could not load 'user' service. :: GET /PopupNotification/action/grouped :: /var/www/html/espo9/application/Espo/Core/Container.php(353)
and many similar lines more, which I cannot make any sense of. As there is a second installation of EspoCRM, with no problems concerning ldap at all, I suspect the error in my configuration - allthoug I wonder, why there is set "useSsl":null in the first error line (s.a.).
Any hint on where to look at to solve the problem would be great!
I have changed authentication method to LDAP and filled in all necessary Information, including security -> SSL. Press button "Test Connection" gives message "The connection successfully established". So everything looks good so far.
Click on save will throw "Error 500". The UI stops working. I can only get rid of the error by changing authenticationMethod in config.php to 'authenticationMethod' => 'Espo'.
In the logs (DEBUG mode), I find lines like those:
[2025-07-18 14:09:24] DEBUG: API (81) 0x51 (Can't contact LDAP server; getLastError: could not call ldap_get_option because LDAP resource was not of type resource): ldap://my-ldap-server:636; POST /Ldap/action/testConnection; Input data: {"host":"my-ldap-server","port":"636","useSsl":null,"us eStartTls":null,"username":"CN=ldap-espocrma,OU=spez,OU=##,DC=ad,DC=##,DC=de","bindReq uiresDn":false,"accountCanonicalForm":"Username"}; Route pattern: /{controller}/action/{action}; Route params: Array ( [controller] => Ldap [action] => testConnection )
[2025-07-18 14:09:24] ERROR: (81) 0x51 (Can't contact LDAP server; getLastError: could not call ldap_get_option because LDAP resource was not of type resource): ldap://my-ldap-server:636 :: POST /Ldap/action/testConnection :: /var/www/html/espo9/vendor/laminas/laminas-ldap/src/Ldap.php(1037)
[2025-07-18 14:09:25] DEBUG: API (0) Could not load 'user' service.; GET /PopupNotification/action/grouped; Route pattern: /{controller}/action/{action}; Route params: Array ( [controller] => PopupNotification [action] => grouped )
[2025-07-18 14:09:25] CRITICAL: (0) Could not load 'user' service. :: GET /PopupNotification/action/grouped :: /var/www/html/espo9/application/Espo/Core/Container.php(353)
and many similar lines more, which I cannot make any sense of. As there is a second installation of EspoCRM, with no problems concerning ldap at all, I suspect the error in my configuration - allthoug I wonder, why there is set "useSsl":null in the first error line (s.a.).
Any hint on where to look at to solve the problem would be great!
Comment