After a power shortage, nobody could connect to the Samba shares of a Debian Linux server, and a look at “top” on the Linux server showed that the winbindd process used 100% cpu.
The solution was easy:
/etc/init.d/samba stop
/etc/init.d/winbind stop
a kill -9 <processnumber> to the running winbindd process.
Find and remove the gencache.tdb file (/var/lib/samba/gencache.tdb on my Debian server).
/etc/init.d/samba start
/etc/init.d/winbind start
/etc/init.d/samba stop
net rpc join -U administrator%<admin_password>
/etc/init.d/samba start
This fixed the problem.
Configuration: Domain master is a Windows SBS 2003, main file server a Debian Linux Lenny server using winbind as primary autentication mechanism.