summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-04-01 15:56:58 +1100
committerAndrew Tridgell <tridge@samba.org>2011-04-04 10:30:30 +1000
commit45e00ee68683695ed22b97b6396083fedd70c06f (patch)
treef7545f78fb8d7ef055dc1a47409ede59b663dbd1 /source4
parent4a98d6ce96924e905ce87e9bec2ef29d25803aad (diff)
downloadsamba-45e00ee68683695ed22b97b6396083fedd70c06f.tar.gz
samba-45e00ee68683695ed22b97b6396083fedd70c06f.tar.bz2
samba-45e00ee68683695ed22b97b6396083fedd70c06f.zip
s4-libnet: honour convention of DEBUGLEVEL>=10 for NDR print
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_become_dc.c12
-rw-r--r--source4/libnet/libnet_unbecome_dc.c4
2 files changed, 16 insertions, 0 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index 29ee069dd3..a68f4c5ea0 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -1568,6 +1568,10 @@ static void becomeDC_drsuapi_connect_send(struct libnet_BecomeDC_state *s,
if (!composite_is_ok(c)) return;
}
+ if (DEBUGLEVEL >= 10) {
+ drsuapi->binding->flags |= DCERPC_DEBUG_PRINT_BOTH;
+ }
+
creq = dcerpc_pipe_connect_b_send(s, drsuapi->binding, &ndr_table_drsuapi,
s->libnet->cred, s->libnet->event_ctx,
s->libnet->lp_ctx);
@@ -2435,6 +2439,10 @@ static void becomeDC_drsuapi1_add_entry_recv(struct tevent_req *subreq)
talloc_free(binding_str);
if (!composite_is_ok(c)) return;
+ if (DEBUGLEVEL >= 10) {
+ s->drsuapi2.binding->flags |= DCERPC_DEBUG_PRINT_BOTH;
+ }
+
/* w2k3 uses the same assoc_group_id as on the first connection, so we do */
s->drsuapi2.binding->assoc_group_id = s->drsuapi1.pipe->assoc_group_id;
@@ -2501,6 +2509,10 @@ static void becomeDC_drsuapi2_bind_recv(struct tevent_req *subreq)
talloc_free(binding_str);
if (!composite_is_ok(c)) return;
+ if (DEBUGLEVEL >= 10) {
+ s->drsuapi3.binding->flags |= DCERPC_DEBUG_PRINT_BOTH;
+ }
+
/* w2k3 uses the same assoc_group_id as on the first connection, so we do */
s->drsuapi3.binding->assoc_group_id = s->drsuapi1.pipe->assoc_group_id;
/* w2k3 uses the concurrent multiplex feature on the 3rd connection, so we do */
diff --git a/source4/libnet/libnet_unbecome_dc.c b/source4/libnet/libnet_unbecome_dc.c
index 67227de13b..4bffc5079e 100644
--- a/source4/libnet/libnet_unbecome_dc.c
+++ b/source4/libnet/libnet_unbecome_dc.c
@@ -550,6 +550,10 @@ static void unbecomeDC_drsuapi_connect_send(struct libnet_UnbecomeDC_state *s)
talloc_free(binding_str);
if (!composite_is_ok(c)) return;
+ if (DEBUGLEVEL >= 10) {
+ s->drsuapi.binding->flags |= DCERPC_DEBUG_PRINT_BOTH;
+ }
+
creq = dcerpc_pipe_connect_b_send(s, s->drsuapi.binding, &ndr_table_drsuapi,
s->libnet->cred, s->libnet->event_ctx,
s->libnet->lp_ctx);