summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-21 12:11:37 -0400
committerSimo Sorce <idra@samba.org>2010-07-28 12:23:39 -0400
commit72088096af8dbf57cbc85c71cd0eef4447e7560d (patch)
tree43462642bae86f08cbe28f897e8cc7f5ad781808
parent183e0a0d9f87bc619cd832decf5745be1d28f598 (diff)
downloadsamba-72088096af8dbf57cbc85c71cd0eef4447e7560d.tar.gz
samba-72088096af8dbf57cbc85c71cd0eef4447e7560d.tar.bz2
samba-72088096af8dbf57cbc85c71cd0eef4447e7560d.zip
rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for krb5 auth
-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 1ab3ac07f6..f5f1f01df6 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -1014,6 +1014,12 @@ out_free:
}
}
if (binding->flags & DCERPC_AUTH_KRB5) {
+ /* 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_KRB5;
} else {