[Samba] ldbreader.c example doesnt work

Rowland Penny rpenny at samba.org
Sat Sep 22 08:30:32 UTC 2018


On Sat, 22 Sep 2018 01:48:16 +0200
Oliver Rath via samba <samba at lists.samba.org> wrote:

> Hi list,
> 
> ive compiles the ldbreader example in samba-4.9 context and tested it
> with sam.ldb as database (and other). Always I get an error message:
> 
> ./ldbreader
> Aborted (core dumped)
> 
> In git I see, the code is from 2011, so it is probabably not useable
> anymore. Is there another working example in a non-python context for
> searching in ldb database?
> 

What's wrong with ldbsearch ?

If you are trying to write your own version, then have a look at:

lib/ldb/tools/ldbsearch.c

Rowland



More information about the samba mailing list