[Pkg-samba-maint] Help needed with TDB move for 4.0 packages

Andrew Bartlett abartlet at samba.org
Wed Jun 12 09:01:01 UTC 2013


I noticed Ivo recently did some of the TDB move code for older versions
of Samba.

We need the following TDB files moved from /var/lib/samba
to /var/lib/samba/private as far as I read the old FHS patch:

schannel_store.tdb
MACHINE.SID (long depreciated, not actually a tdb)
idmap2.tdb
passdb.tdb
secrets.tdb

I don't fully grok the upgrade code and dpkg --compare-versions stuff,
so I'm wondering if Ivo or someone can help remove this as one of the
last major TODO items before an experimental upload?

That is, I've seen this in samba.postinst, but I'm not entirely clear
what versions I would use in this stanza, or how best to cope with the
different possible older locations:

# bug #454770
if dpkg --compare-versions "$2" lt-nl 2:3.6.13-2 \
	&& dpkg --compare-versions "$2" ge 3.0.24 \
	&& [ -e /etc/samba/schannel_store.tdb ] \
	&& ! [ -e /var/lib/samba/schannel_store.tdb ]
then
	mv /etc/samba/schannel_store.tdb /var/lib/samba/schannel_store.tdb
fi

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org





More information about the Pkg-samba-maint mailing list