summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-05-13 18:44:15 +0200
committerJan Zeleny <jzeleny@redhat.com>2012-05-22 11:14:57 -0400
commit08c3147f6e4b525a8dea0a670e21b45ca78c5c5a (patch)
tree7244832f5deaa4d830150eb540a1a73421849a9c
parentbe174855d948ca8eeebe63be50e20b9daad58019 (diff)
downloadsssd-08c3147f6e4b525a8dea0a670e21b45ca78c5c5a.tar.gz
sssd-08c3147f6e4b525a8dea0a670e21b45ca78c5c5a.tar.xz
sssd-08c3147f6e4b525a8dea0a670e21b45ca78c5c5a.zip
Add configure option to build pac responder
-rw-r--r--configure.ac1
-rw-r--r--src/external/pac_responder.m434
2 files changed, 35 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1ca53b523..90bef99ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,6 +124,7 @@ m4_include([src/external/nsupdate.m4])
m4_include([src/external/libkeyutils.m4])
m4_include([src/external/libnl.m4])
m4_include([src/external/systemd.m4])
+m4_include([src/external/pac_responder.m4])
m4_include([src/util/signal.m4])
WITH_UNICODE_LIB
diff --git a/src/external/pac_responder.m4 b/src/external/pac_responder.m4
new file mode 100644
index 000000000..e157910dc
--- /dev/null
+++ b/src/external/pac_responder.m4
@@ -0,0 +1,34 @@
+AC_SUBST(NDR_KRB5PAC_CFLAGS)
+AC_SUBST(NDR_KRB5PAC_LIBS)
+
+AC_ARG_ENABLE([experimental-pac-responder],
+ [AS_HELP_STRING([--enable-experimental-pac-responder],
+ [build experimental pac responder])],
+ [build_pac_responder=$enableval],
+ [build_pac_responder=no])
+
+if test x$build_all_experimental_features != xno
+then
+ build_pac_responder=yes
+fi
+
+if test x$build_pac_responder == xyes
+then
+ PKG_CHECK_MODULES(NDR_KRB5PAC, ndr_krb5pac,,
+ AC_MSG_ERROR([Cannot build pac responder without libndr_krb5pac]))
+
+ AC_PATH_PROG(KRB5_CONFIG, krb5-config)
+ AC_MSG_CHECKING(for supported MIT krb5 version)
+ KRB5_VERSION="`$KRB5_CONFIG --version`"
+ case $KRB5_VERSION in
+ Kerberos\ 5\ release\ 1.9*)
+ AC_MSG_RESULT(yes)
+ ;;
+ *)
+ AC_MSG_ERROR([Cannot build authdata plugin with this version of
+ MIT Kerberos, please use 1.9.x])
+ esac
+fi
+
+AM_CONDITIONAL([BUILD_PAC_RESPONDER], [test x$build_pac_responder = xyes ])
+