LDAP Sync in Conjur 12.5+ is failing to establish connection to our LDAPS server

LDAP Sync in Conjur 12.5+ is failing to establish connection to our LDAPS server

95
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:07 PM


Symptom


Attempting to configure LDAP Sync in the Conjur Enterprise web user interfaces fails and results in one or more of the following the error responses:

Error Response 1
LDAP Connection Results
Failed To Connect To Server
Response body couldn't be parsed: no implicit conversion of nil into String

Error Response 2

We're sorry, but something went wrong. 
If you are the application owner check the logs for more information.
Error Response 3
​​​​​​​LDAP Connection Results
Failed To Connect To Server
​​​​​​​Response body couldn't be parsed: 809: unexpected token at '<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx</center> </body> </html> '


Environment


Conjur Server Conjur Enterprise 12.5+ using LDAP Sync

Cause


Large LDAP policies can lead the Conjur CLI to time out and fail to return the generated policy.



Resolution


When this occurs, the LDAP sync API may be used directly with cURL to return the LDAP sync policy as `ldap-sync.yaml`:

 

curl -v \

--cacert "/root/conjur-<account>.pem" \

--header "$(conjur authn authenticate -H)" \

https://<conjur-fqdn>/api/ldap-sync/policy?config_name=default \

| jq '.policy' --raw-output \

> ldap-sync.yaml



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001QDNCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail