Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 72235

Summary: Cannot login to SAMBA DC from Windows after SAMBA upgrade to 3.0.8.
Product: Gentoo Linux Reporter: Thekk <thekkthedwarf>
Component: [OLD] ServerAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED TEST-REQUEST    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thekk 2004-11-23 07:00:15 UTC
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.
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2004-11-23 07:26:38 UTC
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