]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Deprecating SMB LanMan helpers
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 May 2016 01:55:32 +0000 (13:55 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 May 2016 01:55:32 +0000 (13:55 +1200)
Bring the SMB LanMan helpers one step closer to removal by dropping them
from the set of helpers which are auto-detected and built by default
with Squid.

They are still available for the minority using them. But need to be
explicitly listed in the ./configure options to be built.

configure.ac
doc/release-notes/release-4.sgml
lib/Makefile.am
src/auth/basic/SMB_LM/required.m4
src/auth/ntlm/SMB_LM/required.m4

index 02273d290a26f46d29932b6259375c7d94203dfd..1edb09c9c558ded39ba39ddc579626c4765693a2 100644 (file)
@@ -2483,6 +2483,7 @@ AC_MSG_NOTICE([Authentication support enabled: ${enable_auth:=yes}])
 SQUID_DEFINE_BOOL(USE_AUTH,$enable_auth,[Enable support for authentication])
 AM_CONDITIONAL(ENABLE_AUTH, test "x$enable_auth" != "xno")
 AUTH_MODULES=""
+require_smblib=0
 
 AC_ARG_ENABLE(auth-basic,
   AS_HELP_STRING([--enable-auth-basic="list of helpers"],
@@ -2542,6 +2543,7 @@ for module in $AUTH_MODULES; do
 done
 AC_SUBST(AUTH_MODULES)
 AC_SUBST(AUTH_LIBS_TO_BUILD)
+AM_CONDITIONAL(ENABLE_SMBLIB, $require_smblib)
 
 dnl Select logging daemon helpers to build
 AC_ARG_ENABLE(log-daemon-helpers,
index 2a92633ec60779115724c6da44835b60bb18894a..1b5c666b92f94a034ac55fed650f68d8f6972849 100644 (file)
@@ -414,10 +414,14 @@ This section gives an account of those changes in three categories:
 <descrip>
        <tag>--enable-auth-basic</tag>
        <p>The <em>MSNT-multi-domain</em> helper has been removed.
+       <p>The SMB LanMan helper <em>SMB_LM</em> is no longer built by default.
+          It needs to be explicitly listed to be built.
 
        <tag>--enable-auth-ntlm</tag>
        <p>The SMB LanMan helper is now built using <em>SMB_LM</em>
           (was lower case <em>smb_lm</em>).
+       <p>The SMB LanMan helper <em>SMB_LM</em> is no longer built by default.
+          It needs to be explicitly listed to be built.
 
        <tag>--enable-diskio</tag>
        <p>Auto-detection of SMP related modules has been fixed to
index bc46a4aa66608627d52a2d7e09032089a76827dd..d1ac5d0e23e5a26d94cba09ad20df0fe498c7bed 100644 (file)
@@ -37,9 +37,12 @@ if ENABLE_WIN32SPECIFIC
 noinst_LTLIBRARIES += libsspwin32.la
 libsspwin32_la_SOURCES = sspwin32.cc
 else
-SUBDIRS += rfcnb smblib
 EXTRA_DIST += sspwin32.cc
 endif
+if ENABLE_SMBLIB
+# smblib is the only user of the rfcnb library
+SUBDIRS += rfcnb smblib
+endif
 if ENABLE_AUTH_NTLM
 SUBDIRS += ntlmauth
 endif
index 09d5a1b415951172a8b144642762d8a64cb350b1..26597304e9d64bb10130b230ac578b96b7a6b226 100755 (executable)
@@ -5,7 +5,10 @@
 ## Please see the COPYING and CONTRIBUTORS files for details.
 ##
 
-BUILD_HELPER="SMB_LM"
-
 # DONT build this helper on Windows
-AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
+# DONT build this helper by default
+if test "x$auto_auth_basic_modules" != "xyes";then
+  BUILD_HELPER="SMB_LM"
+  AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
+  require_smblib=`test "x$BUILD_HELPER" = "xSMB_LM"`
+fi
index 708dc00fd65ab81d17af6ac403168bce5e6aa41a..81ed295eff602e7d46eac57d0235c2592f41f8bd 100755 (executable)
@@ -7,9 +7,11 @@
 
 #
 # DONT build this helper on Windows
+# DONT build this helper by default
 #
 # XXX: do we really need the mingw check?
-if test "$squid_host_os" != "mingw"; then
+if test "$squid_host_os" != "mingw" -a "x$auto_auth_ntlm_modules" != "xyes"; then
   BUILD_HELPER="SMB_LM"
   AC_CHECK_HEADERS([w32api/windows.h windows.h],[BUILD_HELPER=""])
+  require_smblib=`test "x$BUILD_HELPER" = "xSMB_LM"`
 fi