From e286b9c0bd7bf553f216d7c8288bb75a6b3dde95 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 29 Jul 2010 20:07:19 -0400 Subject: [PATCH] rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for ntlmssp --- source3/rpcclient/rpcclient.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index f5f1f01df65..675fb1d947c 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -1007,6 +1007,12 @@ out_free: pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_NTLMSSP; } if (binding->flags & DCERPC_AUTH_NTLM) { + /* If neither Integrity or Privacy are requested then + * Use just Connect level */ + if (pipe_default_auth_level == DCERPC_AUTH_LEVEL_NONE) { + pipe_default_auth_level = DCERPC_AUTH_LEVEL_CONNECT; + } + if (pipe_default_auth_type == DCERPC_AUTH_TYPE_SPNEGO) { pipe_default_auth_spnego_type = PIPE_AUTH_TYPE_SPNEGO_NTLMSSP; } else { -- 2.11.4.GIT