2.4.1.6.1 Configuring /etc/hosts

If the system is not using a DNS Server or IP address for the LDAP server, the below utility can be used to update the /etc/hosts file with the LDAP server IP and its hostname. This configuration applies to all servers in the topology.

Perform the following procedure to configure /etc/hosts:

  1. Run the below command as admusr on the Active NOAM server of the topology. Replace <IP> with the LDAP Server IP and <HOSTNAME> with the LDAP server's hostname. The <IP> and <HOSTNAME> are separated by a space character. In case of multiple entries, provide them in a comma separated format.

    Example:

    /usr/TKLC/appworks/bin/ldapCliAuthentication.sh --add-hosts --entries "<IP> <HOSTNAME>"
    /usr/TKLC/appworks/bin/ldapCliAuthentication.sh --add-hosts --entries "10.10.10.10 ldap-server-1.in,10.10.10.11 ldap-server-2.in"
  2. The above command will append the below 2 entries in the /etc/hosts file on all the servers of the topology.
    
    10.10.10.10 ldap-server-1.in
    10.10.10.11 ldap-server-2.in
    

    Note:

    The --add-hosts utility does not validate the given inputs. It will append the given inputs to the /etc/hosts file as provided. Verify the input values before running the command.