LDB 1.2.2 allows us to fix bug 13015, bug 13016 and bug 13017 in Samba 4.7
Created attachment 13566 [details] patch cherry-picked from master for 4.7 (only) The attached patch backports ldb 1.2.2 and the changes that use it. This allows a manual downgrade from a GUID indexed DB (will be scripted in a future commit) and redacts secrets from DRS replication traffic.
Comment on attachment 13566 [details] patch cherry-picked from master for 4.7 (only) You missed --stdout :-) I also noticed you didn't picked all changes of ldb-1.2.2, you have just 10. But I see this 16 looking at git log --decorate --graph -17 origin/master -- lib/ldb * ba54816 (HEAD, tag: ldb-1.2.2, sernox-v4-0-libndr/master4-release, sernox-v4-0-libndr/HEAD, master4-release) ldb: version 1.2.2 * 37bb629 ldb: Add new ldb_ldif_message_redacted_string() with tests * 01c49b1 ldb_tdb: Refuse to re-index very old database with no DN in the record * 5463601 ldb_tdb: Use braces in ltdb_dn_list_find_val() * 6246c32 ldb_tdb: Check for talloc_strdup() failure in ltdb_index_add1() * ffc8023 ldb_tdb: Check for errors during tdb operations in ltdb_reindex() * 3ce80cf ldb_tdb: Use memcmp rather than strncmp() in ltdb_key_is_record(), re_key() and re_index() * fec666b ldb_tdb: Create a common ltdb_key_is_record() allowing multiple key forms * 2d0007e ldb_tdb: Do not trigger the unique index check during a re-index, use another pass * da1e234 ldb_tdb: Use memcmp() to compare TDB keys in re_index() * a5a2243 ldb: Add tests for indexed and unindexed search expressions * 841e763 ldb: Fix tests to call the parent tearDown(), not setUp in tearDown * 3164c0a ldb_tdb: Rework ltdb_modify_internal() to use ltdb_search_dn1() internally * bff81a2 ldb: Add LDB_UNPACK_DATA_FLAG_NO_ATTRS * 99e4bea lib: ldb: Python. Take care of freeing the passed in module description if ldb_register_module() fails. * 41b1f8a lib: ldb: Use NULL to allocate modules not talloc_autofree_context(). * 19dfcce (tag: ldb-1.2.1) ldb: version 1.2.1
Thanks, I'll sort this out at work today.
Created attachment 13589 [details] patch cherry-picked from master for 4.7 (only) Here is the right patch.
Pushed to autobiuld-v4-7-test.
Pushed to v4-7-test