Bug 1476849 - authconfig does not follow glibc changes in /etc/nsswitch.conf
authconfig does not follow glibc changes in /etc/nsswitch.conf
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: authconfig (Show other bugs)
7.4
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Pavel Březina
BaseOS QE Security Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-31 11:10 EDT by Patrik Kis
Modified: 2017-08-02 02:46 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Patrik Kis 2017-07-31 11:10:06 EDT
Description of problem:
The default parameters in /etc/nsswitch.conf changed in bug 1392540, but it seems authconfig did not follow this change. I'm not sure it should, but probably yes.

Version-Release number of selected component (if applicable):
authconfig-6.2.8-30.el7
glibc-2.17-196.el7

How reproducible:
always

Steps to Reproduce:

# rpm -q authconfig glibc
authconfig-6.2.8-30.el7.x86_64
glibc-2.17-196.el7.x86_64
# 
# grep -e ^netgroup -e ^automount /etc/nsswitch.conf
netgroup:   nisplus sss
automount:  files nisplus sss
# authconfig --update --disablenis
# grep -e ^netgroup -e ^automount /etc/nsswitch.conf
netgroup:   nisplus sss
automount:  files nisplus sss
# 
# authconfig --update --enablenis
# grep -e ^netgroup -e ^automount /etc/nsswitch.conf
netgroup:   files nis sss
automount:  files nis
# 
# authconfig --update --disablenis
# grep -e ^netgroup -e ^automount /etc/nsswitch.conf
netgroup:   files sss
automount:  files
#

Actual results:
When calling --disablenis after --enablenis (the same with --enable and --disable ldap), authconfig does not restore the previous nsswitch.conf status.
Removing "nisplus" is arguable, but "sss" from "netgroup" probably should not be removed.

Expected results:
automount:  files sss
is restored in /etc/nsswitch.conf with --disablenis.

Note You need to log in before you can comment on or make changes to this bug.