ldb: introduce ldb_unpack_data_withlist to unpack partial list of attributes
authorMatthieu Patou <mat@matws.net>
Fri, 28 Dec 2012 05:38:29 +0000 (21:38 -0800)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 17 Dec 2015 02:23:20 +0000 (03:23 +0100)
commitabcd35f942468e8e51dbc7b976055232df41d421
treeda21a6f1fdea6175bf46b59d3de978dee5fdc646
parent1595f56634a8950c4493799b30c2dbe254466751
ldb: introduce ldb_unpack_data_withlist to unpack partial list of attributes

When provided with non NULL list ldb_unpack_data_withlist will only
unpack attributes that are specified in the list (+ distinguished name)
ldb_unpack_data is changed to call ldb_unpack_data_withlist behind the
scene.

(for modifications found by testing, and re-indentation requested in review)
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Sadly a signed-off-by was not available from Matthieu Patou for the original
version of this patch posted to samba-technical for comment, so instead:

(for supervision of Adrian)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11602
lib/ldb/common/ldb_pack.c
lib/ldb/include/ldb_module.h