Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Show, find, and export operations in the "sss_override" utility now work correctly
Red Hat Enterprise Linux 7.3 introduced local overrides to the System Security Services Daemon (SSSD). Due to a regression, "sss_override" commands failed if an override was created without the "-n" option. The bug has been fixed and now "sss_override" works correctly.
Created attachment 1198131[details]
debug log
Description of problem:
sss_override user-export fails
Version-Release number of selected component (if applicable):
sssd-tools-1.14.0-30.el7.x86_64
How reproducible:
Always.
Steps to Reproduce:
1. Set up an LDAP provider
2. Create an user override:
3. Restart sssd
4. Try to export the user overrides
Actual results:
# sss_override user-export /var/lib/sss/backup/sssd_user_overrides.bak
# echo $?
1
# ls -la /var/lib/sss/backup/sssd_user_overrides.bak
-rw-r--r--. 1 root root 0 6. Sep 09:04 /var/lib/sss/backup/sssd_user_overrides.bak
Expected results:
sss_override should not fail to export.
Additional information:
It would be great, if sss_override user-export tells the user when it fails. I only discovered this bug, because I wanted to remove the SSSD cache. Otherwise I had not seen that it generates just an empty file and fails. The "sssctrl cache-remove" command validates the result of the backup:
# sssctl cache-remove
SSSD must not be running. Stop SSSD now? (yes/no) [yes]
Creating backup of local data...
SSSD backup of local data already exist, override? (yes/no) [no] yes
Error while executing external command
Unable to export group overrides
Unable to create backup of local data, can not remove the cache.
The override fails to export if the name attribute is not overriden. For example if someone only overrides shell for the user or GID for the group.
I do not think this is a regression.
(In reply to Jakub Hrozek from comment #11)
> Upstream ticket:
> https://fedorahosted.org/sssd/ticket/3179
For some reason, the previous clone didn't update the devel Whiteboard, so our internal tool didn't see the BZ as cloned..
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, 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://rhn.redhat.com/errata/RHEA-2016-2476.html
Created attachment 1198131 [details] debug log Description of problem: sss_override user-export fails Version-Release number of selected component (if applicable): sssd-tools-1.14.0-30.el7.x86_64 How reproducible: Always. Steps to Reproduce: 1. Set up an LDAP provider 2. Create an user override: 3. Restart sssd 4. Try to export the user overrides Actual results: # sss_override user-export /var/lib/sss/backup/sssd_user_overrides.bak # echo $? 1 # ls -la /var/lib/sss/backup/sssd_user_overrides.bak -rw-r--r--. 1 root root 0 6. Sep 09:04 /var/lib/sss/backup/sssd_user_overrides.bak Expected results: sss_override should not fail to export. Additional information: It would be great, if sss_override user-export tells the user when it fails. I only discovered this bug, because I wanted to remove the SSSD cache. Otherwise I had not seen that it generates just an empty file and fails. The "sssctrl cache-remove" command validates the result of the backup: # sssctl cache-remove SSSD must not be running. Stop SSSD now? (yes/no) [yes] Creating backup of local data... SSSD backup of local data already exist, override? (yes/no) [no] yes Error while executing external command Unable to export group overrides Unable to create backup of local data, can not remove the cache.