summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-14 17:21:22 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-14 17:21:22 +0000
commitfbf072599b1fb82f2f2fc7a7d53929e204c9d1c4 (patch)
treeb02037c52564c1bba4b7bd1d9342fe75164648ac
parentf90a83812c3d547e036ef638de06ffd86eedd21a (diff)
downloadsamba-fbf072599b1fb82f2f2fc7a7d53929e204c9d1c4.tar.gz
samba-fbf072599b1fb82f2f2fc7a7d53929e204c9d1c4.tar.bz2
samba-fbf072599b1fb82f2f2fc7a7d53929e204c9d1c4.zip
Fix the build for non-kerberos environments.
Volker (This used to be commit c8f4d7952ffbe0438e33c37ae1365e5dd4f1734a)
-rw-r--r--source3/utils/ntlm_auth.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c
index 5f6950385e..19d485a936 100644
--- a/source3/utils/ntlm_auth.c
+++ b/source3/utils/ntlm_auth.c
@@ -734,6 +734,8 @@ static void manage_client_ntlmssp_targ(SPNEGO_DATA spnego)
return;
}
+#ifdef HAVE_KRB5
+
static BOOL manage_client_krb5_init(SPNEGO_DATA spnego)
{
char *principal;
@@ -834,6 +836,8 @@ static void manage_client_krb5_targ(SPNEGO_DATA spnego)
}
}
+#endif
+
static void manage_gss_spnego_client_request(enum squid_mode squid_mode,
char *buf, int length)
{
@@ -896,11 +900,13 @@ static void manage_gss_spnego_client_request(enum squid_mode squid_mode,
while (*mechType != NULL) {
+#ifdef HAVE_KRB5
if ( (strcmp(*mechType, OID_KERBEROS5_OLD) == 0) ||
(strcmp(*mechType, OID_KERBEROS5) == 0) ) {
if (manage_client_krb5_init(spnego))
goto out;
}
+#endif
if (strcmp(*mechType, OID_NTLMSSP) == 0) {
if (manage_client_ntlmssp_init(spnego))
@@ -946,11 +952,13 @@ static void manage_gss_spnego_client_request(enum squid_mode squid_mode,
goto out;
}
+#if HAVE_KRB5
if (strcmp(spnego.negTokenTarg.supportedMech,
OID_KERBEROS5_OLD) == 0) {
manage_client_krb5_targ(spnego);
goto out;
}
+#endif
}