s4:smb_server: change the default for "server signing" to "default"
[kai/samba-autobuild/.git] / source4 / smb_server / smb2 / negprot.c
index 892953635caf421965d399034d53e65c719140d0..24521da42e3bec0dab60115cc7dd6cdf5f49bbe0 100644 (file)
@@ -123,7 +123,7 @@ static NTSTATUS smb2srv_negprot_backend(struct smb2srv_request *req, struct smb2
        ZERO_STRUCT(io->out);
 
        signing_setting = lpcfg_server_signing(lp_ctx);
-       if (signing_setting == SMB_SIGNING_AUTO) {
+       if (signing_setting == SMB_SIGNING_DEFAULT) {
                /*
                 * If we are a domain controller, SMB signing is
                 * really important, as it can prevent a number of
@@ -144,6 +144,9 @@ static NTSTATUS smb2srv_negprot_backend(struct smb2srv_request *req, struct smb2
        }
 
        switch (signing_setting) {
+       case SMB_SIGNING_DEFAULT:
+               smb_panic(__location__);
+               break;
        case SMB_SIGNING_OFF:
                io->out.security_mode = 0;
                break;