diff options
author | Kamen Mazdrashki <kamen.mazdrashki@postpath.com> | 2009-11-16 23:49:51 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-11-23 14:15:05 +0100 |
commit | 65e95b8aa91cdd4de99bb3b698687e425026021f (patch) | |
tree | 8cba6bed2295cd4ac9cae003c0bc5e03387246d6 /source4 | |
parent | 0608d6b125d379221bff801a7bcc1c930bb4ed67 (diff) | |
download | samba-65e95b8aa91cdd4de99bb3b698687e425026021f.tar.gz samba-65e95b8aa91cdd4de99bb3b698687e425026021f.tar.bz2 samba-65e95b8aa91cdd4de99bb3b698687e425026021f.zip |
s4/drs(tort): DSSYNC test to print what is different in drs_msg also
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/dssync.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c index f64ecea21f..220db7b50c 100644 --- a/source4/torture/rpc/dssync.c +++ b/source4/torture/rpc/dssync.c @@ -561,7 +561,13 @@ static bool test_analyse_objects(struct torture_context *tctx, ldif.changetype = LDB_CHANGETYPE_MODIFY; ldif.msg = new_msg; s = ldb_ldif_write_string(ldb, new_msg, &ldif); - s = talloc_asprintf(tctx, "\n# Difference in between DRS and LDAP objects: %s\n", s); + s = talloc_asprintf(tctx, "\n# Difference in between DRS and LDAP objects: \n%s\n", s); + + ldif.msg = ldb_msg_diff(ldb, ldap_msg, drs_msg); + s = talloc_asprintf_append(s, + "\n# Difference in between LDAP and DRS objects: \n%s\n", + ldb_ldif_write_string(ldb, new_msg, &ldif)); + s = talloc_asprintf_append(s, "# Should have no objects in 'difference' message. Diff elements: %d", new_msg->num_elements); |