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

@param userEntity the user
@param userName   the user's os-level username
@throws AmbariException
@see #addPamAuthentication(UserEntity, String, boolean)
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java