Fixed env issues with multiple ldap servers.