public void addLdapAuthentication(UserEntity userEntity, String dn) throws AmbariException {
    addLdapAuthentication(userEntity, dn, true);
  }
Adds the ability for a user to authenticate using a remote LDAP server
<p>
The created {@link UserAuthenticationEntity} and the supplied {@link UserEntity} are persisted.

@param userEntity the user
@param dn         the user's distinguished name
@throws AmbariException
@see #addLdapAuthentication(UserEntity, String, boolean)
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java