When using Samba authenticating via Kerberos against a windows AD, winbind hangs on boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Binary package hint: samba
Hi all,
I recently set about making a linux box (Ubuntu Server LTS 10.04) authenticate against a windows based AD via Kerberos, in order to provide shares which would accept domain logins. Everything (eventually) went fine with this, until I rebooted the box.
The first thing I noticed was that the share was inaccessible until smbd, nmbd and winbind were restarted. It was at this point that I noticed that while smbd and nmbd had been converted to upstart, winbind had not, and I presumed that it was something to do with startup order.
It was at this point I put a head back on the box, and noticed something else. Although I had been able to log in via ssh, the screen was still stuck at the point of starting winbind. The local user was able to switch to another TTY and log in, but the startup sequence was stuck for some reason.
I then renamed the init.d script for winbind, and replaced it with the upstart script suggested in a bug here (https:/
The final solution I found was to change the winbind upstart script AND the samba upstart script to start so that they would only start on networking up (net-device-up IFACE!=lo) in addition to their original start on stanza, looking very much in this respect the same as nmdb already does.
In summary:
If you start winbind attempting to authenticate against an AD before the networking is up, then it seems to hang permanently.
If you start smbd (also attempting to authenticate against an AD) before the networking is up, then the AD authentication will not work until both smbd and winbind are restarted.
Please attach your log files so we can see what is going on.
Thanks
chuck