Common errors in ldb use

Andrew Bartlett abartlet at
Tue Dec 27 09:14:31 GMT 2005

I've been thinking about common mistakes I have been making with the LDB

The first issue is transactions:  We need to have a generic way to
automatically cancel a transaction from talloc
However, the issue that prompts this mail is that of mismatches between
the attributes asked for in a search, and those we enquire of in a

That is, when we do not include (for example) "msDS-KeyVersionNumber" in
the search attributes, but then enquire of it's value.  This happens

I was wondering if we should add a new member to struct ldb_message, to
contain the list of attributes requested.  If (in calling
ldb_msg_find_element()) we ask for an attribute not in that list (and we
didn't ask for all attributes), we should abort().  


Andrew Bartlett
Andrew Bartlett                      
Authentication Developer, Samba Team 
Student Network Administrator, Hawker College
-------------- 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 :

More information about the samba-technical mailing list