mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
4addeaaf5d
ldb_filter_attrs() previously did too much. Now its replacement, ldb_filter_attrs_in_place(), only does the actual filtering, while taking ownership of each element's values is handled in a separate function, ldb_msg_elements_take_ownership(). Also, ldb_filter_attrs_in_place() no longer adds the distinguishedName to the message if it is missing. That is handled in another function, ldb_msg_add_distinguished_name(). As we're now modifying the original message rather than copying it into a new one, we no longer need the filtered_msg parameter. We adapt a test, based on ldb_filter_attrs_test, to exercise the new function. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15270 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> |
||
---|---|---|
.. | ||
python | ||
schema-tests | ||
guidindexpackv1.ldb | ||
init_slapd.sh | ||
init.ldif | ||
kill_slapd.sh | ||
ldapi_url.sh | ||
ldb_filter_attrs_in_place_test.c | ||
ldb_filter_attrs_test.c | ||
ldb_key_value_sub_txn_mdb_test.valgrind | ||
ldb_key_value_sub_txn_test.c | ||
ldb_key_value_test.c | ||
ldb_kv_ops_test.c | ||
ldb_kv_ops_test.valgrind | ||
ldb_lmdb_free_list_test.c | ||
ldb_lmdb_size_test.c | ||
ldb_lmdb_test.c | ||
ldb_match_test.c | ||
ldb_match_test.valgrind | ||
ldb_mod_op_test.c | ||
ldb_msg.c | ||
ldb_no_lmdb_test.c | ||
ldb_parse_test.c | ||
ldb_tdb_test.c | ||
lldb_ldap.c | ||
photo.ldif | ||
samba4.png | ||
sample_module.c | ||
slapd.conf | ||
start_slapd.sh | ||
test_ldb_dn.c | ||
test_ldb_qsort.c | ||
test-attribs.ldif | ||
test-config.ldif | ||
test-controls.sh | ||
test-default-config.ldif | ||
test-dup-2.ldif | ||
test-dup.ldif | ||
test-extended.sh | ||
test-generic.sh | ||
test-index.ldif | ||
test-ldap.sh | ||
test-modify-modrdn.ldif | ||
test-modify-unmet-2.ldif | ||
test-modify-unmet.ldif | ||
test-modify.ldif | ||
test-schema.sh | ||
test-soloading.sh | ||
test-sqlite3.sh | ||
test-tdb-features.sh | ||
test-tdb-subunit.sh | ||
test-tdb.sh | ||
test-wildcard.ldif | ||
test-wrong_attributes.ldif | ||
test.ldif | ||
testdata.txt | ||
testsearch.txt |