Timeout error while setting up an LDAP connection
This version of documentation is no longer updated. For the latest information, see the following links:
- Continuous Delivery (CD) documentation
- Support Cycle-2 (SC-2) documentation
Cannot set up a connection with your LDAP server.
Symptoms
While setting up an LDAP connection, you might see a 504 Gateway timeout error.
Cause
The connection needs more time than usual to be established.
Resolving the problem
To resolve the issue, increase the LDAP configuration timeout value in the platform-auth-idp configmap to a value in the range 25-60 seconds.
-
Log in to your infrastructure node by using the
oc logincommand. -
Edit the
platform-auth-idpconfigmap.oc -n <your-foundational-services-namespace> edit configmap platform-auth-idp -
Change the
AUTH_SVC_LDAP_CONFIG_TIMEOUT: "25"parameter value to a higher value. For example,"45". The value is in seconds. -
Save the changes.
-
Restart the
platform-auth-servicepods by deleting the pods.-
Get the
platform-auth-servicepod names.oc -n <your-foundational-services-namespace> get pods | grep platform-auth-service -
Delete the
platform-auth-servicepod.oc -n <your-foundational-services-namespace> delete pods <pod-name>
-
Wait for some time and then check the status of the platform-auth-service pods. The status of all platform-auth-service pods must show as Running.
oc -n <your-foundational-services-namespace> get pods | grep platform-auth-service