Skip to content

Configure SSSD's Memory Cache to Expire

An XCCDF Rule

Description

SSSD's memory cache should be configured to set to expire records after seconds. To configure SSSD to expire memory cache, set memcache_timeout to under the [nss] section in /etc/sssd/sssd.conf. For example:

[nss]
memcache_timeout = 

Rationale

If cached authentication information is out-of-date, the validity of the authentication information may be questionable.

ID
xccdf_org.ssgproject.content_rule_sssd_memcache_timeout
Severity
Medium
References
Updated



Remediation - Ansible

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - CCE-83040-6
  - DISA-STIG-SLES-12-010670

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q sssd && { [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; }; then

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