private boolean isPamEnabled() {
    return getConfiguration().getClientSecurityType() == ClientSecurityType.PAM;
  }
Check if PAM authentication is enabled in server properties

@return true if enabled
ambari-server/src/main/java/org/apache/ambari/server/security/authentication/pam/AmbariPamAuthenticationProvider.java