]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: negprot_spnego allow disabling smb1 spnego set
authorDavid Mulder <dmulder@suse.com>
Fri, 11 Mar 2022 17:43:16 +0000 (10:43 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:29 +0000 (17:37 +0000)
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_negprot.c

index b7a1f8b23625bde1df111b302a3789a4a001412d..1b465b9011354aa881ecc21484545342107c8ddd 100644 (file)
@@ -968,7 +968,9 @@ DATA_BLOB negprot_spnego(TALLOC_CTX *ctx, struct smbXsrv_connection *xconn)
                TALLOC_FREE(gensec_security);
        }
 
+#if defined(WITH_SMB1SERVER)
        xconn->smb1.negprot.spnego = true;
+#endif
 
        /* strangely enough, NT does not sent the single OID NTLMSSP when
           not a ADS member, it sends no OIDs at all