#3333 usermod -a -G bar foo fails due to some file providers races
Closed: Fixed Opened by fidencio.

# cat /etc/sssd/sssd.conf
[sssd]
config_file_version = 2
services = nss, pam
domains = shadowutils
debug_level = 0xFFFF0
[nss]
filter_groups = root
filter_users = root
debug_level = 0xFFFF0
[pam]
offline_credentials_expiration = 365
debug_level = 0xFFFF0
[domain/shadowutils]
id_provider = proxy
proxy_lib_name = files
auth_provider = proxy
proxy_pam_target = sssd-shadowutils
proxy_fast_alias = True
debug_level = 0xFFFF0
# cat /etc/nsswitch.conf
[...]
passwd:     files sss
shadow:     files sss
group:      sss

Reproducer:

useradd foo; groupadd bar; usermod -a -G bar foo

The output:

usermod: group 'bar' does not exist

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 1.15.4

Metadata Update from @jhrozek:
- Issue priority set to: minor

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 1.16.1 (was: SSSD 1.15.4)

Metadata Update from @jhrozek:
- Issue tagged with: postpone-to-2-0

Metadata Update from @jhrozek:
- Issue untagged with: postpone-to-2-0
- Issue set to the milestone: SSSD 2.0 (was: SSSD 1.16.1)

Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD 2.1 (was: SSSD 2.0)

This was fixed upstream with https://github.com/shadow-maint/shadow/pull/128 and requested for RHEL backport with https://bugzilla.redhat.com/show_bug.cgi?id=1642499

Metadata Update from @jhrozek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/4364

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata