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

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