public void addLocalAuthentication(UserEntity userEntity, String password) throws AmbariException {
    addLocalAuthentication(userEntity, password, true);
  }
Adds the ability for a user to authenticate using a password stored in Ambari's database
<p>
The supplied plaintext password will be encoded before storing.
<p>
The created {@link UserAuthenticationEntity} and the supplied {@link UserEntity} are persisted.

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