The Samba-Bugzilla – Bug 7760
offline login fails after a reboot
Last modified: 2011-04-10 17:00:01 UTC
I backported the fix from bug 7590 to the version in ubuntu 10.04 (3.4.7), but that only fixed offline logins partially. Now they survive winbind restarts, but not reboots. The logfile says that the cache is valid, but for instance 'getent passwd username' doesn't show any information, nor does 'wbinfo -i username'.
This is what we have in smb.conf:
kerberos method = secrets and keytab
idmap config AALTO : backend = ad
idmap config AALTO : readonly = yes
idmap config AALTO : schema_mode = rfc2307
idmap config AALTO : range = 1000-4000000000
idmap uid = 1000-4000000000
idmap gid = 1000-4000000000
winbind nss info = rfc2307
winbind use default domain = yes
winbind offline logon = true
winbind refresh tickets = true
log level = winbind:10
passwd: files winbind
group: files winbind
hosts: files dns wins
so I think the configuration should be ok, since offline logins work when the machine is left running but offline.
I also tried with 3.5.6, it's the same with that one as well.
That is really strange!
From winbindd's perspective, a restart and a system reboot should be the same.
Could you post a level 10 log of starting winbindd (after reboot) and a failing operation like getent passwd <user>.
For a comparison, please provice lvl 10 logs of the same process after a restart of winbindd (as opposed to reboot).
I'd also like to see your backported patch.
Thanks - Michael
Created attachment 6068 [details]
log from restarting samba 3.5.6 when it was offline, and output from offline-login
Created attachment 6069 [details]
log after a reboot
This one shows that even after going online the login fails after a reboot. It takes several minutes until I could login.
This issue is currently preventing deployment of Linux laptops in the organisation.
If you need that resolved quickly, please contact someone from http://www.samba.org/samba/support