Skip to content

Enable authselect

An XCCDF Rule

Description

Configure user authentication setup to use the authselect tool. If authselect profile is selected, the rule will enable the profile.

warning alert: Warning

If the sudo authselect select command returns an error informing that the chosen profile cannot be selected, it is probably because PAM files have already been modified by the administrator. If this is the case, in order to not overwrite the desired changes made by the administrator, the current PAM settings should be investigated before forcing the selection of the chosen authselect profile.

Rationale

Authselect is a successor to authconfig. It is a tool to select system authentication and identity sources from a list of supported profiles instead of letting the administrator manually build the PAM stack. That way, it avoids potential breakage of configuration, as it ships several tested profiles that are well tested and supported to solve different use-cases.

ID
xccdf_org.ssgproject.content_rule_enable_authselect
Severity
Medium
References
Updated



Remediation - Ansible

- name: XCCDF Value var_authselect_profile # promote to variable
  set_fact:
    var_authselect_profile: !!str <xccdf-1.2:sub xmlns:xccdf-1.2="http://checklists.nist.gov/xccdf/1.2" idref="xccdf_org.ssgproject.content_value_var_authselect_profile" use="legacy"/>
  tags:
    - always


Remediation - Shell Script


var_authselect_profile='<xccdf-1.2:sub xmlns:xccdf-1.2="http://checklists.nist.gov/xccdf/1.2" idref="xccdf_org.ssgproject.content_value_var_authselect_profile" use="legacy"/>'


authselect select "$var_authselect_profile"