Common errors in ldb use
Andrew Bartlett
abartlet at samba.org
Tue Dec 27 09:14:31 GMT 2005
I've been thinking about common mistakes I have been making with the LDB
APIs:
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
result.
That is, when we do not include (for example) "msDS-KeyVersionNumber" in
the search attributes, but then enquire of it's value. This happens
frequently.
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().
Comments?
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/20051227/5e4106cf/attachment.bin
More information about the samba-technical
mailing list