Bug 676698 - authconfig breaks mdns
Summary: authconfig breaks mdns
Keywords:
Status: CLOSED DUPLICATE of bug 645295
Alias: None
Product: Fedora
Classification: Fedora
Component: authconfig
Version: 14
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-10 20:16 UTC by Jeff Bastian
Modified: 2011-02-10 20:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-10 20:45:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeff Bastian 2011-02-10 20:16:17 UTC
Description of problem:
I use mDNS (Zeroconf/Avahi/Bonjour/etc) on my home network.  My /etc/nsswitch.conf contains:
    hosts:      files mdns4_minimal [NOTFOUND=return] dns

I was testing SSSD and I ran
    authconfig --enablesssd --enablesssdauth --enablecachecreds --update
to enable SSSD in my nsswitch.conf and pam config.  That worked, but at the same time, it removed mdns4_minimal from my hosts settings.  My nsswitch.conf only contained the basic
    hosts:      files dns
after running authconfig.

Please preserve mdns4_minimal when running authconfig.

Version-Release number of selected component (if applicable):
authconfig-6.1.11-1.fc14

How reproducible:
every time

Steps to Reproduce:
1. if necessary, install nss-mdns
2. verify mdns4_minimal is listed in /etc/nsswitch.conf for hosts
3. authconfig --enablesssd --enablesssdauth --enablecachecreds --update
  
Actual results:
mdns4_minimal is stripped from nsswitch.conf for hosts

Expected results:
mdns4_minimal is preserved

Additional info:
The nss-mdns post-install scriptlet adds mdns4_minimal to nsswitch.conf:
$ rpm -q --scripts nss-mdns
postinstall scriptlet (using /bin/sh):
/sbin/ldconfig
# Perl-fu to add mdns4_minimal to the hosts line of /etc/nsswitch.conf
if [ -f /etc/nsswitch.conf ] ; then
        sed -i.bak '
                /^hosts:/ !b
                /\<mdns\(4\|6\)\?\(_minimal\)\?\>/ b
                s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g
                ' /etc/nsswitch.conf
fi

Comment 1 Tomas Mraz 2011-02-10 20:26:14 UTC
This is fixed in the current version in rawhide.

Comment 2 Jeff Bastian 2011-02-10 20:45:44 UTC
I see now this is a duplicate of 645295.

I searched bugzilla for "authconfig mdns4_minimal" before opening this and nothing showed up.  Argh.  Sorry for opening a duplicate.

*** This bug has been marked as a duplicate of bug 645295 ***


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