Red Hat Bugzilla – Bug 645295
configuration destroys mdns resolver configuration
Last modified: 2011-05-13 10:58:28 EDT
Description of problem:
I've used system-config-auth to configure user authentication to use LDAP. Afterwards, I've noticed that hosts in my network are no longer resolved. I've found that SSS configuration overwritten /etc/nsswitch.conf and removed all entries from nss-mdns package:
# diff -u nsswitch.conf.bak nsswitch.conf
--- nsswitch.conf.bak 2009-07-21 10:46:47.323901956 +0200
+++ nsswitch.conf 2010-10-20 11:05:24.433850339 +0200
@@ -30,12 +30,12 @@
#shadow: db files nisplus nis
#group: db files nisplus nis
+passwd: files sss
+shadow: files sss
+group: files sss
#hosts: db files nisplus nis dns
-hosts: files mdns4_minimal [NOTFOUND=return] dns
+hosts: files dns
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
@@ -54,10 +54,10 @@
+netgroup: files sss
-automount: files nisplus
+automount: files ldap
aliases: files nisplus
Version-Release number of selected component (if applicable):
Please note that hosts: line was damaged - mdns4_minimal was removed.
I believe this entry is added my nss-mdns package.
Sorry, but it is a little unclear to me what the actual problem here is.
If it is the fact that the hosts: line got changed, I think that would be authconfig bug and needs to be reassigned.
But there is another thing you might have hit - SSSD (or more precisely the underlying resolver library it uses) does not support resolving hosts from any other database than dns or files. So if your servers are resolvable via mdns, SSSD would not see them.
You are right, it is probably system-config-authentication which overwrites nsswitch.conf.
And destroying content of this line is the problem.
*** Bug 676698 has been marked as a duplicate of this bug. ***
*** Bug 700498 has been marked as a duplicate of this bug. ***