[Samba] Downgrade TDB files?

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Jan 4 04:38:13 MST 2010


On Mon, Jan 04, 2010 at 12:23:31PM +0100, Jakov Sosic wrote:
> I've tried Samba 3.4.3 and it upgraded my passdb.tdb file. After testing
> I concluded that I'm not going to upgrade to 3.4.3 yet, because 'getent
> passwd' was broken in recent BlastWave Solaris packages:
> 
> http://wiki.blastwave.org/forum/viewtopic.php?f=5&t=447&start=0
> 
> 
> Now, after I downgraded the Samba back to 3.0.32, client connections
> started to malfunction. I saw these in my logs:
> 
> [2010/01/04 10:54:08, 0] ../samba-3.0.32/source/passdb/pdb_tdb.c:(1049)
>   tdbsam_getsampwnam: failed to
> open /etc/opt/csw/samba/private/passdb.tdb!
> [2010/01/04 11:06:13, 0] ../samba-3.0.32/source/passdb/pdb_tdb.c:(848)
>   tdbsam_open: unknown version => 4
> 
> This causes winbind to coredump...
> 
> 
> Now, I've backed up passdb.tdb and restart samba, because this samba
> instance is just a domain member, and everything seems to work. But I
> wonder, is there a way to downgrade these files? Or is the
> backup/restore only solution?

Either that or another (bad) solution is to do

pdbedit -i tdbsam -e smbpasswd

with the 3.4 binary an then

pdbedit -i smbpasswd -e tdbsam

with the 3.0 one. You lose all the additional information
like full name, the user's RID (in case it's allocated), but
you get back the passwords. Depending on your setup, this
might be enough though.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20100104/e44a60b1/attachment.pgp>


More information about the samba mailing list