Updated ldap config to read specific IP for ldap if set.