Setting ubuntu karmic/debian squeeze clients to authenticate against a windows AD PDC server.
First login fails when eth0 is managed by either network-manager-wicd. winbind drops "Network is unreachable" on syslog and "Could not receive trustdoms" on log.winbindd.
On Debian, with old-style init, setting eth0 on /etc/network/interfaces works nicely, I can log at first attempt either with network-manager and wicd.
On Ubuntu Karmic, with upstart, first attempt always fails
From syslog, it seems that, when eth0 is managed, winbind gets executed before is a proper connection up. A second login attemp works, however.
Seems to me like upstart fires up winbindd too early. Sounds to me like an Ubuntu Karmic issue, not like a Samba issue.
It was my first thought.
But I send it here because I get the same behaviour on Debian Squeeze, where there is old good system V init at work.
Using network manager or wicd makes no difference, so, while I guess this is related to managing interfaces out of /etc/network/interfaces, I see that winbind is the only software involved in all cases. So sending here seemed the right thing.
Is this behaviour to be expected when interfaces are in "unmanaged" mode?
if this isn't solved by now anyway, this is an integration problem of the distro, not a samba bug. Winbind is known to come up and work properly in a sane way.