]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2016-2118: s3: rpcclient: change the default auth level from DCERPC_AUTH_LEVEL_CO...
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Dec 2015 13:49:36 +0000 (14:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 30 Mar 2016 02:08:19 +0000 (04:08 +0200)
ncacn_ip_tcp:server should get the same protection as ncacn_np:server
if authentication and smb signing is used.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11616

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/rpcclient/rpcclient.c

index ac7576fc01750696eef4e1d6c55ff04e51bcfa2c..a35e4223327abd7b0b19a2ce91dc9ac916c60753 100644 (file)
@@ -1110,10 +1110,9 @@ out_free:
                }
        }
        if (pipe_default_auth_type != DCERPC_AUTH_TYPE_NONE) {
-               /* If neither Integrity or Privacy are requested then
-                * Use just Connect level */
+               /* If nothing is requested then default to integrity */
                if (pipe_default_auth_level == DCERPC_AUTH_LEVEL_NONE) {
-                       pipe_default_auth_level = DCERPC_AUTH_LEVEL_CONNECT;
+                       pipe_default_auth_level = DCERPC_AUTH_LEVEL_INTEGRITY;
                }
        }