Red Hat Bugzilla – Bug 1366569
glibc: default nsswitch.conf should not set initgroups
Last modified: 2017-08-01 14:06:55 EDT
Description of problem: ipa server/client install doesnot update initgroups with sss in nssswitch.conf file. Version-Release number of selected component (if applicable): [root@ipaserver ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.3 Beta (Maipo) ipa-server-4.4.0-7.el7.x86_64 sssd-1.14.0-18.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Install RHEL7.3 2. Check the nssswitch.conf file for the below entry [root@ipaserver yum.repos.d]# grep initgroups /etc/nsswitch.conf initgroups: files 3. Install ipa-server and check the nssswitch.conf file. passwd: files sss shadow: files sss group: files sss services: files sss netgroup: nisplus sss sudoers: files sss Actual results: initgroups looksup only on files. initgroups: files grep authconfig /var/log/ipaclient-install.log 2016-08-12T10:34:19Z DEBUG args=/usr/sbin/authconfig --enablesssdauth --update --enablesssd 2016-08-12T10:34:25Z DEBUG args=/usr/sbin/authconfig --update --nisdomain redlabs.qe Expected results: initgroups should also lookup sss initgroups: files sss Additional info:
This is a complex issue and probably a minor regression caused by fix for bug 1329508. Authconfig when writing nsswitch.conf actually comments out the initgroups entry because just placing the sssd into it modifies the behaviour (or at least that was originally the case) that was expected by users and applications (see bug 751450). So I believe proper fix for this bug is to comment out the initgroups entry in default nsswitch.conf configuration. There is no fix for this problem in authconfig apart from reverting the fix for bug 1329508 - however I do not think this is a proper solution.
Setting priority and severity to high/high. In my opinion, this bug should be fixed in 7.3, because otherwise a domain member is not able to resolve supplementary groups, which is really a basic functionality. Whether the fix comes in libc by removing the default initgroups line or in authconfig by changing the way nsswith.conf is generated is a detail from my point of view. But the case of installing a system and joining it to a domain with ipa-client-install is something we must fix.
BTW what will be a difference from glibc point of view between "removing default initgroups line" and adding sss to initgroups by default. "sss" is already a default for passwd and groups. But I know that initgrous is a little bit special case.
Created attachment 1196301 [details] Workaround patch for authconfig
*** Bug 1368973 has been marked as a duplicate of this bug. ***
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://access.redhat.com/errata/RHSA-2017:1916