[Samba] bug in ldbtools?

Harry Jede walk2sun at arcor.de
Sun Oct 5 13:35:22 MDT 2014


On 21:29:38 wrote simo:
> On Fri, 2014-10-03 at 13:35 -0700, Matthieu Patou wrote:
> > On 10/03/2014 02:54 AM, Harry Jede wrote:
> > > Hi all,
> > > 
> > > if one by accident points the ldbsearch command to any file,
> > > which is not a ldb file, this file is silently converted to a
> > > tdb file ;-) .
> > > 
> > > 
> > > root at dc0:~# file /tmp/t2.ldif
> > > /tmp/t2.ldif: ASCII text
> > > 
> > > root at dc0:~# ldbsearch -H /tmp/t2.ldif
> > > # returned 0 records
> > > # 0 entries
> > > # 0 referrals
> > > 
> > > root at dc0:~# file /tmp/t2.ldif
> > > /tmp/t2.ldif: TDB database version 6, little-endian hash size
> > > 10000 bytes
> > > 
> > > 
> > > This behaviour my be OK for ldbadd/ldbmodify. But for a search
> > > command?
> > > 
> > > Samba version is:
> > > Version 4.1.11-Debian
> > 
> > -H option indicates the path to an LDB file, if not existing the
> > LDB tools will create it.
> > 
> > We could improve the situation not to create the file if missing,
> > I'll defer it to Simo.
> 
> Sounds like a bug to be fixed, perhaps even in the tdb tools.
> 
> Harry, can you please open a bug in bugzilla for this ?
Done
Bug 10854

> 
> Simo.


-- 

Regards
	Harry Jede


More information about the samba mailing list