mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
CVE-2016-2115: s3:libsmb: add signing constant SMB_SIGNING_IPC_DEFAULT
SMB_SIGNING_IPC_DEFAULT must be used from s3 client code when opening RPC connections. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11756 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Stefan Metzmacher
parent
a046ffd6cd
commit
b720575f16
@ -170,6 +170,15 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
|
||||
use_level_II_oplocks = true;
|
||||
}
|
||||
|
||||
if (signing_state == SMB_SIGNING_IPC_DEFAULT) {
|
||||
/*
|
||||
* Ensure for IPC/RPC the default is to require
|
||||
* signing unless explicitly turned off by the
|
||||
* administrator.
|
||||
*/
|
||||
signing_state = lp_client_ipc_signing();
|
||||
}
|
||||
|
||||
if (signing_state == SMB_SIGNING_DEFAULT) {
|
||||
signing_state = lp_client_signing();
|
||||
}
|
||||
|
Reference in New Issue
Block a user