The Samba-Bugzilla – Bug 9128
ldb_index could mention the conflicting index value
Last modified: 2012-11-28 10:33:15 UTC
In case of indexing conflicts, the ldb error message could output the conflicting value to help identifying the source of the conflict.
Created attachment 7851 [details]
patch against ldb-1.1.9
Hmmm. My only issue with this patch - is "el->values[v_idx].data" guaranteed to be a printable string ?
I'm also wondering if we could be disclosing secret information this way.
Currently unique indexes are on mundane things, and we don't have read access controls (except for a static list of secrets), but both of these things could change.
If you do have read access to the attributes, finding out manually what you conflicted with shouldn't be too hard.