SV-274867r1107270_rule
V-274867
SRG-OS-000396-GPOS-00176
UBTU-22-254020
CAT II
10
Configure Ubuntu 22.04 LTS, for PKI-based authentication, to validate certificates by constructing a certification path to an accepted trust anchor.
Add or update the /etc/sssd/sssd.conf so that the following entries are in the correct sections of the file:
$ sudo vi /etc/sssd/sssd.conf
[sssd]
services = nss,pam,ssh
config_file_version = 2
[pam]
pam_cert_auth = True
[domain/example.com]
ldap_user_certificate = usercertificate;binary
certificate_verification = ca_cert,ocsp
ca_cert = /etc/ssl/certs/ca-certificates.crt
Verify Ubuntu 22.04 LTS, for PKI-based authentication, has valid certificates by constructing a certification path to an accepted trust anchor.
Verify the pam service is listed under [sssd] with the following command:
$ sudo grep -A 1 '^\[sssd\]' /etc/sssd/sssd.conf
[sssd]
services = nss,pam,ssh
If "pam" is not listed in services, this is a finding.
Verify the pam service is set to use pam for smart card authentication in the [pam] section of /etc/sssd/sssd.conf with the following command:
$ sudo grep -A 1 '^\[pam]' /etc/sssd/sssd.conf
[pam]
pam_cert_auth = True
If "pam_cert_auth = True" is not returned, this is a finding.
Verify "ca" is enabled in "certificate_verification" with the following command:
$ sudo grep certificate_verification /etc/sssd/sssd.conf
certificate_verification = ca_cert,ocsp
If "certificate_verification" is not set to "ca" or the line is commented out, this is a finding.
V-274867
False
UBTU-22-254020
Verify Ubuntu 22.04 LTS, for PKI-based authentication, has valid certificates by constructing a certification path to an accepted trust anchor.
Verify the pam service is listed under [sssd] with the following command:
$ sudo grep -A 1 '^\[sssd\]' /etc/sssd/sssd.conf
[sssd]
services = nss,pam,ssh
If "pam" is not listed in services, this is a finding.
Verify the pam service is set to use pam for smart card authentication in the [pam] section of /etc/sssd/sssd.conf with the following command:
$ sudo grep -A 1 '^\[pam]' /etc/sssd/sssd.conf
[pam]
pam_cert_auth = True
If "pam_cert_auth = True" is not returned, this is a finding.
Verify "ca" is enabled in "certificate_verification" with the following command:
$ sudo grep certificate_verification /etc/sssd/sssd.conf
certificate_verification = ca_cert,ocsp
If "certificate_verification" is not set to "ca" or the line is commented out, this is a finding.
M
5594