Bug 980861
Summary: | authconfig overwrites sss changes /etc/nsswitch.conf during installation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Kaleem <ksiddiqu> | ||||||||
Component: | authconfig | Assignee: | Tomas Mraz <tmraz> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | David Spurek <dspurek> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 7.0 | CC: | deanhunter, dspurek, ebenes, jakub, jhrozek, law, mfranc, pfrankli, rstrode, schwab, sgallagh, spoyarek, ssorce, stefw, tmraz | ||||||||
Target Milestone: | rc | Keywords: | Reopened | ||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | authconfig-6.2.7-1.el7 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | 867473 | ||||||||||
: | 1000349 (view as bug list) | Environment: | |||||||||
Last Closed: | 2014-06-13 11:52:30 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | 867473, 1000348 | ||||||||||
Bug Blocks: | 917655, 1000349 | ||||||||||
Attachments: |
|
Description
Kaleem
2013-07-03 11:31:06 UTC
Which compose have you tried? RHEL-7.0-20130628.0 has the latest bits and should work fine. Closing this as a duplicate of an existing bug 917655. If the latest compose doesn't work then we'll see what's wrong in that bug. *** This bug has been marked as a duplicate of bug 917655 *** I tried with compose RHEL-7.0-20130624.n.0. I will check this in latest compose. Please post your observations on bug 917655. Reopening this bug. See bug 917655 comment 5. It looks like authconfig assumes USESSSD=no by default and whenever `authconfig --update` is called, sssd is disabled and subsequently sss is removed from /etc/nsswitch.conf. My theory is that anaconda calls `authconfig --update --nostart` but not --enablesssd, due to which the 'sss' is removed from nsswitch.conf. I can confirm from anaconda logs that the following is invoked: anaconda.program.log:13:02:44,265 INFO program: Running... /usr/sbin/authconfig --update --nostart --enableshadow --passalgo=sha512 So this is the source of the problem. So now the question becomes: do we treat this as an anaconda bug or an authconfig bug? I need to investigate why authconfig drops it because it should read the presence of sss in nsswitch.conf. What is the contents of nsswitch.conf before authconfig overwrites it? It should be saved in /var/lib/authconfig/last Tomas, I can reproduce the issue simply by editing /etc/nsswitch.conf and adding 'sss' manually to the passwd: line after 'files' and then running: /usr/sbin/authconfig --update --nostart --enableshadow --passalgo=sha512 After that, the 'sss' has been stripped back out again. *** Bug 1003981 has been marked as a duplicate of this bug. *** Please note that on Fedora 19 and 20 Beta authconfig behavior is the same as noted in comments 6 through 9. (In reply to Dean Hunter from comment #13) > Please note that on Fedora 19 and 20 Beta authconfig behavior is the same as > noted in comments 6 through 9. I just tried to reproduce this with authconfig-6.2.6-4.fc20.x86_64 and it appears to be working just fine. (In reply to Stephen Gallagher from comment #14) > (In reply to Dean Hunter from comment #13) > > Please note that on Fedora 19 and 20 Beta authconfig behavior is the same as > > noted in comments 6 through 9. > > I just tried to reproduce this with authconfig-6.2.6-4.fc20.x86_64 and it > appears to be working just fine. After your comment I built a new VM using Fedora 20 TC2. I used Anaconda, but not Kickstart. The Kickstart and Name Service Switch confiiguration files built by Anaconda are attached. There are no reference to SSS in either file. I was expecting the following references in the NSS configuration file: passwd: files sss shadow: files sss group: files sss services: files sss sudoers: files sss netgroup: files sss automount: files sss Created attachment 829491 [details]
Fedora 20 TC2 anaconda-ks.cfg
Created attachment 829492 [details]
Fedora 20 TC2 nsswitch.conf
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |