After changing the Server Port on the vRA Directory configuration the old Port is still being used.
search cancel

After changing the Server Port on the vRA Directory configuration the old Port is still being used.

book

Article ID: 315466

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
After changing the Server Port on the vRA Directory configuration the old Port is still being used.

Within connector.log the old Port is still referenced when trying to sync the directory:

2018-10-30T08:37:40,666 ERROR (resourceSyncTaskExecutor-1) [;;;] com.vmware.horizon.directory.ldap.dc.service.context.JNDIContextFetcher - Failed to connect to ad.vcloud.local:389
javax.naming.CommunicationException: ad.vcloud.local:389
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:238) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1615) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2749) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153) ~[?:1.8.0_181]
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83) ~[?:1.8.0_181]
    ...

Environment

VMware vRealize Automation 7.x

Cause

The configuration is not completely updated with the new settings.

Resolution

This is a known issue currently there is no solution.

Workaround:
You can either recreate the directory configuration or edit any related files. Before doing either please create a Backup of the environment.

To recreate the directory:
  1. Login using a tenant administrator account
  2. Delete the affected directory at "Administration > Directories Management > Directories"
  3. Recreate the directory with the same settings and the new port.

To edit configurations files manually on each vRA Appliance:
  1. Update any Port information within config-state.json in /usr/local/horizon/conf/states/<TENANT_NAME>/<TENANT_ID>/config-state.json
  2. When using DNS Server location update file domain_krb.properties in /usr/local/horizon/conf
  3. When using IWA configuration the also update krb5.conf in /etc folder