[juneau-lug] winbind, Could not receive trustdoms, and avahi
- From: James Zuelow <e5z8652@xxxxxxxxxx>
- To: juneau-lug@xxxxxxxxxxxxx
- Date: Mon, 23 Jun 2008 20:41:15 -0800
Recently had an issue where Samba was malfunctioning, specifically winbind.
wbinfo -u and wbinfo -g failed, and log.winbindd had "Could not receive
trustdoms" errors when winbindd was started.
Turns out that the avahi-daemon package had edited nsswitch.conf to make it
look like this:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: files winbind
group: files winbind
shadow: files
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 wins
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
The key element here being the hosts line. It is set up to first
check /etc/hosts, then try avahi, then try dns, then try avahi again, and
finally try wins resolution.
Samba chokes on the mdns/avahi stuff and fails to load.
The solution is to edit the hosts line to read:
hosts: files dns wins
and nuke avahi. I really, really, really, really hate this avahi-daemon
package. The only problem is that I keep doing an `apt-get --purge remove
avahi-daemon` and the very next time that I do a dist-upgrade it's back!!!
Once I find out which package is listing avahi-daemon as a dependency I will
file a bug report.
James
------------------------------------
The Juneau Linux Users Group -- http://www.juneau-lug.org
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the
word unsubscribe in the subject header.
Other related posts:
- » [juneau-lug] winbind, Could not receive trustdoms, and avahi