LDAPS test connection fails when using the Configuration Tool UI

LDAPS test connection fails when using the Configuration Tool UI

book

Article ID: KB0077868

calendar_today

Updated On:

Products Versions
Spotfire Server 7.11, 10.1, 10.2,10.3

Description

When configuring LDAPS using configuration tool, test connection fails to resolve the LDAP host IP and below error is returned 
"Could not create any connection to LDAP server(s) ldaps" 

On "Save Configuration" you may get the below error
----
"The list administrators operation failed"
Error creating a user directory: Error initializing run-time properties for LDAP configuration '----'
-----

Error in the <Spotfire server>\tomcat\logs\tools.log
----
"server.ldap.LdapContextFactory: Could not create any connection to LDAP server(s) ldaps://x.x.x.x.:636, giving up after #x attempts".
----

Issue/Introduction

LDAPS test connection fails when using the Configuration Tool

Environment

All supported OS.

Resolution

- Make sure that the LDAP(s) certificate is imported successfully
- Check using a third party tool like e.g. LDAP browser (https://www.ldapadministrator.com/softerra-ldap-browser.htm) on the Spotfire Server machine if you are able to connect to the LDAPS Server


If the above works, the test connection error can be ignored.

1) Ignore the error and save the configuration
2) Ignore the error received at the time of Save Configuration
3) Confirm if the LDAPS configuration changes were saved using the config export-config command
4) Restart the Spotfire Server service and check if the server starts up successfully

Also in the server debug logs check for the below successful entries.
----
[*LdapSynchronizer.RestartRunnable*] server.userdir.AbstractDatabaseProvider: Updating the User Directory with external principals: #xxxxx users
[*LdapSynchronizer.RestartRunnable*] server.userdir.AbstractDatabaseProvider: ...done updating the User Directory with external principals
[*LdapSynchronizer.RestartRunnable*] userdir.ldap.LdapSynchronizer: Done synchronizing the User Directory with the external LDAP directory for LDAP configuration x.x.x.
----


NOTE: This is a known issue with Configuration UI tool and LDAPS setup and will be fixed in the later version