Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288752 - net-fs/samba-server-3.4.2[tdb]: "smb passwd file" config directive ignored
Summary: net-fs/samba-server-3.4.2[tdb]: "smb passwd file" config directive ignored
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL: http://us3.samba.org/samba/history/sa...
Whiteboard:
Keywords:
: 314817 319337 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-12 18:05 UTC by Martin von Gagern
Modified: 2011-01-28 14:13 UTC (History)
3 users (show)

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 Martin von Gagern 2009-10-12 18:05:22 UTC
After updating to samba-3.4.2 my users suddenly couldn't log in any more. Furthermore, running smbpasswd reported that there was no entry for the named user. The configured smb passwd file however clearly listed the name in question.

To work around this problem, I changed my config file like this:
-smb passwd file = /some/path/and/file
+passdb backend = smbpasswd:/some/path/and/file

strace indicates that before this change, /var/lib/samba/private/passdb.tdb was used as the password database, at least by smbpasswd.

There is no indication in the smb.conf(5) man page that smb passwd file were deprecated, so this comes as a real surprise to me.

I would expect a revbumped ebuild of samba-server to do at least one of the following:
1. elog about this problem, so admins can adjust their config manually
2. automatically adjust the config file resp. merge an adjusted version
3. avoid the problem by restoring "smb passwd file", maybe by making smbpasswd
   (without explicitely named path) the default passdb backend, or by
   automatically setting the backend if the smb passwd file config option is
   given
4. declare smbpasswd deprecated and elog instructions about how to migrate
   to tdb
Comment 1 Rafał Mużyło 2009-10-12 18:31:51 UTC
In a way INVALID (read the changes), but I don't use samba.
Unless as an upstream doc bug.

Though perhaps elog warning would be useful.
Comment 2 Martin von Gagern 2009-10-12 20:30:50 UTC
(In reply to comment #1)
> Unless as an upstream doc bug.

Not even sure there; they MIGHT intend the "smb passwd file" directive so that admins can specify the type of backend in one place using passdb backend, and the location for it in another place. Dunno. Some remark would still be useful, though. Sall I report this upstream?

> Though perhaps elog warning would be useful.

Definitely, and it's a solution I can live with.
Comment 3 Rafał Mużyło 2009-10-13 17:18:10 UTC
OK, lets see, if this gets some response.
Comment 4 Marcel Greter 2009-10-14 01:25:27 UTC
I guess this is the cause of the problem:

http://www.samba.org/samba/history/samba-3.4.0.html

> Major enhancements in Samba 3.4.0 include:
> ------------------------------------------
> 
> Configuration changes:
> o The default passdb backend has been changed to 'tdbsam'!

HTH, Marcel
Comment 5 Jerry McBride 2010-04-05 11:11:43 UTC
This change in backends should have at least warranted a news flash via eselect... I mean really...
Comment 6 Andy Task 2010-05-09 19:24:43 UTC
Ran into same problem, why has this broken ebuild been unmasked and marked as stable, it is broken, smbusers can't access anymore... Cmon guys this really costs time I do not have... switched back to 3.0.37 ...
Comment 7 Rafał Mużyło 2010-05-12 13:32:09 UTC
*** Bug 319337 has been marked as a duplicate of this bug. ***
Comment 8 David Flogeras 2010-05-19 11:36:19 UTC
I just hit this as well. One of the nice folks at #samba worked me through it. Basically you can upgrade your old smbpasswd file to the tdb database with

pdbedit -i smbpasswd:/path/to/oldfile -e tdbsam:/path/to/newfile

In my case the old file was in /etc/samba/smbpasswd, and the new one (the default where samba now looks on gentoo without extra config) is /var/lib/samba/private/passdb.tdb

Hopefully this can make its way into a news, or ewarn in the ebuild for other people.
Comment 9 Víctor Ostorga (RETIRED) gentoo-dev 2010-05-21 17:37:21 UTC
*** Bug 314817 has been marked as a duplicate of this bug. ***
Comment 10 Fabio Bonfante 2010-05-21 20:05:15 UTC
we are all agree about the source of the problem after upgrading to samba 3.4, but probably a different bug regarding the task "document/warn the user" would be more helpful...
Comment 11 Víctor Ostorga (RETIRED) gentoo-dev 2010-06-01 14:05:54 UTC
I've added an elog text to both samba 3.4 and 3.5, perhaps it's too late to fire a news item.

Sorry for all the inconveniences
Comment 12 Víctor Ostorga (RETIRED) gentoo-dev 2011-01-28 14:13:45 UTC
*** Bug 352869 has been marked as a duplicate of this bug. ***