queries on ldb

Andrew Bartlett abartlet at samba.org
Wed Jan 4 12:12:11 GMT 2006

On Wed, 2006-01-04 at 22:19 +1100, Brad Hards wrote:
> G'day all,
> After trying to do some doxygen based API documentation for ldb (for my own 
> use, and to be merged if considered appropriate), I've come up with a few 
> queries (more technical at the end):
> 1. How does the GPL'd ldb/include/dlinklist.h affect the otherwise LGPL'd LDB?

I'm sure this can be sorted.  It is a very useful header :-)

> 2. Is there any reason why the license includes the FSF's old address? Will 
> you take a patch to update it?

I'll take such a patch, if you do so for the entire Samba4 tree :-)

> 3. What is ldb_msg_canonicalize meant to do? I see that it sorts the elements 
> of an ldb_message, but that surely isn't all. Can someone provide a message 
> (or the LDIF that goes into such a message) that will be different after 
> ldb_msg_canonicalize? Or an RFC reference that explains it?
> 4. What is the return value of ldb_search()? The comments in the header and 
> source indicate it is supposed to be the number of records returned. However 
> tools/ldb*.c show it being tested against LDB_SUCCESS (i.e. 0). 

It has been changed, to return an error code, with the number of
messages being in another parameter (res->count).

Andrew Bartlett

Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060104/a4c32e46/attachment.bin

More information about the samba-technical mailing list