What is required to make schannel.tdb TDB_CLEAR_IF_FIRST

simo idra at samba.org
Mon Jun 14 15:14:50 MDT 2010


On Mon, 2010-06-14 at 21:00 +0200, Volker Lendecke wrote:
> On Mon, Jun 14, 2010 at 02:14:09PM -0400, simo wrote:
> > Looks like the other way around AFAIK.
> > You use always TDB_CLEAR_IF_FIRST and just make sure you open (and keep
> > open) the TDB in main(). So the main() one is always the first and
> > always cleans the TDB on restart, while any other caller cannot clear it
> > because it is not the "first" (does not have the lock).
> 
> Please watch out -- we have a little different semantics in
> Samba3. If you want to use CLEAR_IF_FIRST, make sure you
> have it already open in the parent, see for example
> 4cdbe07b2563.

I think this is what I meant by saying that you have to open the TDB in
main() (usually the parent of all processes).
Is there something else I am not seeing ?

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list