summaryrefslogtreecommitdiff
path: root/source4/libcli/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r--source4/libcli/auth/gensec.m45
-rw-r--r--source4/libcli/auth/gensec.mk1
2 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/auth/gensec.m4 b/source4/libcli/auth/gensec.m4
index 8f8faf5d7c..673db77f82 100644
--- a/source4/libcli/auth/gensec.m4
+++ b/source4/libcli/auth/gensec.m4
@@ -1,5 +1,8 @@
+if test t$SMB_EXT_LIB_ENABLE_KRB5 = tYES; then
+ SMB_MODULE_DEFAULT(gensec_krb5, STATIC)
+fi
+
SMB_SUBSYSTEM_MK(GENSEC,libcli/auth/gensec.mk)
SMB_MODULE_MK(gensec_krb5, GENSEC, NOT, libcli/auth/gensec.mk)
SMB_MODULE_MK(gensec_ntlmssp, GENSEC, STATIC, libcli/auth/gensec.mk)
SMB_MODULE_MK(gensec_spnego, GENSEC, STATIC, libcli/auth/gensec.mk)
-
diff --git a/source4/libcli/auth/gensec.mk b/source4/libcli/auth/gensec.mk
index 5c6a8260e5..bab79ea2fd 100644
--- a/source4/libcli/auth/gensec.mk
+++ b/source4/libcli/auth/gensec.mk
@@ -17,6 +17,7 @@ ADD_OBJ_FILES = \
libcli/auth/kerberos_verify.o \
libcli/auth/gssapi_parse.o
REQUIRED_SUBSYSTEMS = GENSEC
+REQUIRED_LIBRARIES = KRB5
# End MODULE gensec_krb5
################################################