aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMandy Wu <mandy.wu@intel.com>2011-07-18 23:36:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-07-18 23:36:36 +0200
commita6d4807d028eb82f4a99587b0a8851727ca88566 (patch)
tree0f2398259a279bd3d826eee2e78cc76aa1747e46 /configure.ac
parent650a504b2f244ad323f1b45c2f36a2f967f7870f (diff)
NTLM single-sign on supported
With the use of the 'ntlm_auth' tool from the Samba project
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e9b49c788..b5adde5ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2686,6 +2686,34 @@ then
USE_MANUAL="no";
fi
+dnl **********************************************************
+dnl path of NTLM single-sign-on helper ntlm_auth
+dnl
+AC_ARG_WITH(ntlm-auth,
+ AC_HELP_STRING([--with-ntlm-auth=PATH],
+ [Where to look for ntlm_auth, path points to ntlm_auth installation (default: /usr/bin/ntlm_auth);])
+ AC_HELP_STRING([--without-ntlm-auth],
+ [disable ntlm single-sign-on by using ntlm_auth]),
+ntlm_auth="$withval",
+ [if test "$ac_cv_native_windows" = "yes"; then ntlm_auth="no"; else ntlm_auth="/usr/bin/ntlm_auth"; fi])
+
+AC_MSG_CHECKING([if using ntlm_auth is requested])
+
+if test "$ntlm_auth" != "no"; then
+ AC_DEFINE(USE_NTLM_AUTH, 1, [Whether or not use Samba's 'winbind' daemon helper 'ntlm_auth' for NTLM single-sign-on])
+ AC_SUBST(USE_NTLM_AUTH, [1])
+ if test "$ntlm_auth" = "yes"; then
+ dnl --with-ntlm-auth (without path) used, use default path
+ ntlm_auth="/usr/bin/ntlm_auth"
+ fi
+ AC_MSG_RESULT($ntlm_auth)
+else
+ AC_MSG_RESULT(no)
+fi
+AC_SUBST(ntlm_auth)
+AC_DEFINE_UNQUOTED(NTLM_AUTH, "$ntlm_auth", [Samba's 'winbind' daemon helper 'ntlm_auth' which can be used for NTLM single-sign-on])
+
+
dnl *************************************************************************
dnl If the manual variable still is set, then we go with providing a built-in
dnl manual
@@ -2969,6 +2997,9 @@ if test "x$CURL_DISABLE_HTTP" != "x1"; then
if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
-o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1"; then
SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
+ if test "x$USE_NTLM_AUTH" = "x1"; then
+ SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_SSO"
+ fi
fi
fi
if test "x$USE_TLS_SRP" = "x1"; then