Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72235 - Cannot login to SAMBA DC from Windows after SAMBA upgrade to 3.0.8.
Summary: Cannot login to SAMBA DC from Windows after SAMBA upgrade to 3.0.8.
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-23 07:00 UTC by Thekk
Modified: 2004-11-23 07:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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