diff options
Diffstat (limited to 'source4/smb_server/signing.c')
-rw-r--r-- | source4/smb_server/signing.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/smb_server/signing.c b/source4/smb_server/signing.c index 5d18d44f4b..b3fac2fa70 100644 --- a/source4/smb_server/signing.c +++ b/source4/smb_server/signing.c @@ -110,6 +110,13 @@ BOOL srv_init_signing(struct smbsrv_connection *smb_conn) smb_conn->signing.allow_smb_signing = True; smb_conn->signing.mandatory_signing = True; break; + case SMB_SIGNING_AUTO: + if (lp_domain_logons()) { + smb_conn->signing.allow_smb_signing = True; + } else { + smb_conn->signing.allow_smb_signing = False; + } + break; } return True; } |