Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nss: use real primary gid if the value is overriden
SYSDB_PRIMARY_GROUP_GIDNUM contains original primary group id from AD because any possible override may not be known at the time of storing the user. Now we try to lookup group by its originalADgidNumber and if it is found we will replace the original id with real primary group id. Steps to reproduce: 1. Enroll SSSD to IPA domain with AD trust 2. Add ID override to Domain Users `ipa idoverridegroup-add 'Default Trust View' "Domain Users@ad.vm" --gid=40000000` 3. On IPA server: Remove cache for the overrides to apply immediately and restart SSSD `sssctl cache-remove --stop --start` 4. On IPA server: Resolve user `id Administrator@ad.vm` There will be visible both new and old gids without the patch. Resolves: https://pagure.io/SSSD/sssd/issue/4124 Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit 03bc962)
- Loading branch information
Showing
3 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters