tdbexport (was Re: Working on LDAP support in HEAD)
Tim Potter
tpot at linuxcare.com.au
Wed May 17 00:44:36 GMT 2000
Jeremy Allison writes:
> > I've been thinking about this - currently there's no way to
> > determine the type of some data stored in a tdb. So I think it
> > is therefore impossible to write a tdb exporter that can handle
> > byte-ordering dependencies as this information is not stored in
> > the tdb!
>
> There are tricks to deal with this - store a 2 byte int
> of a known value, extract it and then check the ordering.
>
> So long as you know the type of the data stored in a tdb
> (and you must do or you couldn't interpret it on extract)
> then it should be ok.
This is the essence of the problem. I guess the type can be
inferred from the key as I know that the data stored in a
'WINBINDD CACHE TIMEOUT' key, for example, was stored with using
tdb_store_int().
Tim.
>
> Jeremy.
>
More information about the samba-technical
mailing list