summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-07-22 14:06:36 +0200
committerStefan Metzmacher <metze@samba.org>2008-07-23 14:46:06 +0200
commit734d0c0a5def566ad8a8167c81e06bd9b31b4645 (patch)
tree4443ab9470c99e596af16f0455f8ed22790b90f0 /source4
parent5bb679aa0fe87b5dd7f7c82d09157bc93b8b54cb (diff)
downloadsamba-734d0c0a5def566ad8a8167c81e06bd9b31b4645.tar.gz
samba-734d0c0a5def566ad8a8167c81e06bd9b31b4645.tar.bz2
samba-734d0c0a5def566ad8a8167c81e06bd9b31b4645.zip
RPC-DSSYNC: print 'supplementalCredentials' more verbosely
metze (This used to be commit 6a7637b12e4a34915a53e81a0f47571da21fdc5a)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/dssync.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index 3279047c6a..822cd088f1 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "lib/cmdline/popt_common.h"
#include "librpc/gen_ndr/ndr_drsuapi_c.h"
+#include "librpc/gen_ndr/ndr_drsblobs.h"
#include "libcli/cldap/cldap.h"
#include "libcli/ldap/ldap_client.h"
#include "torture/torture.h"
@@ -526,6 +527,8 @@ static void test_analyse_objects(struct torture_context *tctx,
DEBUGADD(0,("ATTR: %s enc.length=%lu plain.length=%lu\n",
name, (long)enc_data->length, (long)plain_data.length));
if (plain_data.length) {
+ enum ndr_err_code ndr_err;
+ struct supplementalCredentialsBlob scb;
dump_data(0, plain_data.data, plain_data.length);
if (save_values_dir) {
char *fname;
@@ -541,6 +544,13 @@ static void test_analyse_objects(struct torture_context *tctx,
}
talloc_free(fname);
}
+
+ ndr_err = ndr_pull_struct_blob_all(&plain_data, tctx,
+ lp_iconv_convenience(tctx->lp_ctx), &scb,
+ (ndr_pull_flags_fn_t)ndr_pull_supplementalCredentialsBlob);
+ if (NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
+ NDR_PRINT_DEBUG(supplementalCredentialsBlob, &scb);
+ }
} else {
dump_data(0, enc_data->data, enc_data->length);
}