LDAP sync or modifying LDAP settings in Cloud director fails with 400 Bad request
search cancel

LDAP sync or modifying LDAP settings in Cloud director fails with 400 Bad request

book

Article ID: 368608

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Performing LDAP sync, testing LDAP connection or modifying other LDAP settings fails.
  • In browser developer tool logs you may see an error such as:

  • In the /opt/vmware/vcloud-director/logs/vcloud-container-debug.log or vcloud-container-info.log, you see an entry such as
 "com.vmware.vcloud.api.presentation.service.BadRequestException: URL https://vCD-FQDN must be HTTP.\n\tat com.vmware.ssdc.backend.CAkimbiSystems.validateAndStandardizeBaseUri(CAkimbiSystems.java:1081)\n\tat com.vmware.ssdc.backend.CAkimbiSystems.updatePublicEndpointSettings(CAkimbiSystems.java:769)\n\tat com.vmware.ssdc.backend.CAkimbiSystems.updateSystemSettings(CAkimbiSystems.java:636)\n\tat com.vmware.vcloud.management.system.SystemServiceImpl.updateSystemSettings(SystemServiceImpl.java:57…ol$CleaningRunnable.run(ExtendedJettyQueuedThreadPool.java:58)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)\n\tat

Environment

VMware Cloud Director 10.x

Cause

Modifying LDAP settings is pushed via Cloud director API https://<VCD_URL>/api/admin/extension/settings/ldapSettings. This API validates system setting that includes public address and REST API URLs and this issue occurs when public addresses field contains incorrect/null values.

For ex: HTTP URL field must contain HTTP URL and HTTPS URL must contain HTTPS URL.  This error is noticed when HTTP URL field contains HTTPS URL or vice-versa.

Resolution

Review public addresses field and ensure it has correct values for Web Portal and API fields - VMware Cloud Director Public Addresses