summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-29 20:07:19 -0400
committerSimo Sorce <idra@samba.org>2010-07-30 14:55:27 -0400
commite286b9c0bd7bf553f216d7c8288bb75a6b3dde95 (patch)
tree8a81ff6243e07e3c5f3bd5e1de3964624832f520
parentfcdda8f44372b567b866b0eee90c7a9444f7f96c (diff)
downloadsamba-e286b9c0bd7bf553f216d7c8288bb75a6b3dde95.tar.gz
samba-e286b9c0bd7bf553f216d7c8288bb75a6b3dde95.tar.bz2
samba-e286b9c0bd7bf553f216d7c8288bb75a6b3dde95.zip
rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for ntlmssp
-rw-r--r--source3/rpcclient/rpcclient.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index f5f1f01df6..675fb1d947 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 {