From eeaf155c86700948a84070442de60d5458a01bef Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 7 Jul 2011 16:45:37 +0200 Subject: [PATCH] s3: Disable SMB2 support by default --- source3/configure.in | 19 +++++++++++++++++++ source3/param/loadparm.c | 2 ++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index 248f319..bd196a4 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -5741,6 +5741,25 @@ case "$host_os" in ;; esac +AC_MSG_CHECKING(whether to support SMB2) +AC_ARG_WITH(smb2, +[AS_HELP_STRING([--with-smb2], + [Include experimental SMB2 support (default=no)])], +[ case "$withval" in + yes) + AC_MSG_RESULT(yes) + AC_DEFINE(WITH_SMB2_SERVER, 1, + [Whether to include experimental SMB2 support]) + samba_cv_WITH_SMB2_SERVER=yes + ;; + *) + AC_MSG_RESULT(no) + samba_cv_WITH_SMB2_SERVER=no + ;; + esac ], + AC_MSG_RESULT(no) +) + ################################################# # check for AIO support diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 1ec68ad..bd44fd1 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -721,7 +721,9 @@ static void add_to_file_list(const char *fname, const char *subfname); static bool lp_set_cmdline_helper(const char *pszParmName, const char *pszParmValue, bool store_values); static const struct enum_list enum_protocol[] = { +#ifdef WITH_SMB2_SERVER {PROTOCOL_SMB2, "SMB2"}, +#endif {PROTOCOL_NT1, "NT1"}, {PROTOCOL_LANMAN2, "LANMAN2"}, {PROTOCOL_LANMAN1, "LANMAN1"}, -- 1.7.3.4