From bbe758d55b58a28ae2585de07fde835b14445843 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 11 Jun 2009 15:21:29 +1000 Subject: always enable RPC debugging with a debug level >= 100. This helps with tools where setting the binding string is not possible, such as net --- source4/librpc/rpc/dcerpc.c | 4 ++++ source4/librpc/rpc/dcerpc_util.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'source4') diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index c8add30ef8..13f649cdd9 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -114,6 +114,10 @@ _PUBLIC_ struct dcerpc_pipe *dcerpc_pipe_init(TALLOC_CTX *mem_ctx, struct tevent ZERO_STRUCT(p->syntax); ZERO_STRUCT(p->transfer_syntax); + if (DEBUGLVL(100)) { + p->conn->flags |= DCERPC_DEBUG_PRINT_BOTH; + } + return p; } diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index d57cc57e47..4524673449 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -513,6 +513,10 @@ struct composite_context *dcerpc_pipe_auth_send(struct dcerpc_pipe *p, conn = s->pipe->conn; conn->flags = binding->flags; + + if (DEBUGLVL(100)) { + conn->flags |= DCERPC_DEBUG_PRINT_BOTH; + } /* remember the binding string for possible secondary connections */ conn->binding_string = dcerpc_binding_string(p, binding); -- cgit