diff options
-rw-r--r-- | source4/librpc/rpc/dcerpc_auth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_auth.c b/source4/librpc/rpc/dcerpc_auth.c index a1467164953..bace29a9d64 100644 --- a/source4/librpc/rpc/dcerpc_auth.c +++ b/source4/librpc/rpc/dcerpc_auth.c @@ -398,7 +398,9 @@ struct composite_context *dcerpc_bind_auth_send(TALLOC_CTX *mem_ctx, sec->auth_info->credentials = state->credentials; if (gensec_have_feature(sec->generic_state, GENSEC_FEATURE_SIGN_PKT_HEADER)) { - state->pipe->conn->flags |= DCERPC_PROPOSE_HEADER_SIGNING; + if (auth_level >= DCERPC_AUTH_LEVEL_INTEGRITY) { + state->pipe->conn->flags |= DCERPC_PROPOSE_HEADER_SIGNING; + } } /* The first request always is a dcerpc_bind. The subsequent ones |