After some looking around I found out that the directory where the passwords were stored was changed in 3.0.8 (from /etc/samba/private to /var/lib/samba/private). There are two files in the old directory, but only one was copied to the new directory (namely secrets.tdb). The other file (passdb.tdb) was only 'touched' (0 bytes length). Thus after a 'cp /etc/samba/private/passdb.tdb /var/lib/samba/private', it all worked again. Reproducible: Didn't try Steps to Reproduce: 1. Have an old (read: not bleeding edge) version of Samba 2. Upgrade it 3. Try to login from a windows client 4. A log message will appear in the log files that the client can't be found in the passdb.tdb file. Also pdbedit doesn't work. Expected Results: The ebuild should have copied not only secrets.tdb to the new location, but also passdb.tdb. The routine that copies the first file is found in pkg_postinstall() in the samba ebuilds for version 3.0.8 and higher (haven't checked lower though). The instruction is also missing in version 3.0.9.
old private config saved in pkg_setup: post_install comes too late (an active daemon may write before the emerge script). Testing needed for 3.0.8-r1 and 3.0.9