RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2075545 - Tlog role - Enabling session recording configuration does not work due to RHEL9 SSSD files provider default [rhel-9.0.0.z]
Summary: Tlog role - Enabling session recording configuration does not work due to RHE...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rhel-system-roles
Version: 9.0
Hardware: All
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Jakub Haruda
URL:
Whiteboard: role:tlog
Depends On: 2071804
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-14 13:41 UTC by RHEL Program Management Team
Modified: 2022-05-17 23:34 UTC (History)
10 users (show)

Fixed In Version: rhel-system-roles-1.16.2-1.el9_0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2071804
Environment:
Last Closed: 2022-05-17 23:34:06 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-118991 0 None None None 2022-04-14 13:45:06 UTC
Red Hat Product Errata RHBA-2022:4575 0 None None None 2022-05-17 23:34:09 UTC

Comment 9 Scott Poore 2022-04-27 18:13:01 UTC
Verified.

Version ::

rhel-system-roles-1.16.2-1.el9_0.2.noarch

Results ::

# cat /tmp/test.yml
---
- name: Run tlog-SSSD configuration tests
  hosts: all

  tasks:
    - name: Run role with tlog_scope_sssd all
      import_role:
        name: rhel-system-roles.tlog
      vars:
        tlog_scope_sssd: all

# find /etc/sssd
/etc/sssd
/etc/sssd/conf.d
/etc/sssd/pki

# grep "^passwd" /etc/nsswitch.conf
passwd:     files sss systemd


[root@rhel9 ~]# ansible-playbook -i 127.0.0.1, /tmp/test.yml 

PLAY [Run tlog-SSSD configuration tests] **************************************************************

TASK [Gathering Facts] ********************************************************************************
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
ED25519 key fingerprint is SHA256:wZEjHkmbrPV5GVH6DfQWIRtXDz/mYnEpNcJknwCfnpg.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
ok: [127.0.0.1]

TASK [rhel-system-roles.tlog : Set platform/version specific variables] *******************************
ok: [127.0.0.1] => (item=RedHat.yml)
ok: [127.0.0.1] => (item=RedHat.yml)
skipping: [127.0.0.1] => (item=RedHat_9.yml) 
skipping: [127.0.0.1] => (item=RedHat_9.0.yml) 

TASK [rhel-system-roles.tlog : install session recording packages] ************************************
changed: [127.0.0.1]

TASK [rhel-system-roles.tlog : get the rpm package facts] *********************************************
ok: [127.0.0.1]

TASK [rhel-system-roles.tlog : install cockpit session recording] *************************************
skipping: [127.0.0.1]

TASK [rhel-system-roles.tlog : configure basic sssd] **************************************************
changed: [127.0.0.1] => (item={'key': 'enable_files_domain', 'value': 'true'})
changed: [127.0.0.1] => (item={'key': 'services', 'value': 'nss'})

TASK [rhel-system-roles.tlog : configure sssd session recording config] *******************************
changed: [127.0.0.1]

TASK [rhel-system-roles.tlog : Check with-files-domain feature exists] ********************************
ok: [127.0.0.1]

TASK [rhel-system-roles.tlog : Check if files domain is currently enabled] ****************************
ok: [127.0.0.1]

TASK [rhel-system-roles.tlog : update nsswitch] *******************************************************
changed: [127.0.0.1]

TASK [rhel-system-roles.tlog : configure tlog rec session] ********************************************
changed: [127.0.0.1]

RUNNING HANDLER [rhel-system-roles.tlog : tlog_handler restart sssd] **********************************
changed: [127.0.0.1]

PLAY RECAP ********************************************************************************************
127.0.0.1                  : ok=11   changed=6    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0   


[root@rhel9 ~]# cat /etc/sssd/conf.d/sssd-session-recording.conf
#
# Ansible managed
#
[session_recording]
scope=all
users=
groups=
exclude_users=
exclude_groups=

[root@rhel9 ~]# cat /etc/sssd/sssd.conf

[sssd]
enable_files_domain = true
services = nss

[root@rhel9 ~]# grep "^passwd" /etc/nsswitch.conf
passwd:     sss files systemd

Comment 14 errata-xmlrpc 2022-05-17 23:34:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:4575


Note You need to log in before you can comment on or make changes to this bug.