[Samba] Downgrade TDB files?
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:
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: Digital signature
More information about the samba