[LDAP] Cleaned up LDAP client code.