From 409c6d1407dd0baf6724a013908871994ca27e15 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Tue, 2 Sep 2003 17:02:09 +0000 Subject: Check for support for in-memory keytabs, which are needed to make heimdal work properly. MIT does not support them, so this check will be used to decide whether to use them. First part of fixing bug #372. (This used to be commit 85737fc9371d8208f3dd55d408958e357c48266e) --- source3/configure.in | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source3/configure.in b/source3/configure.in index 3f9510920d..a91dbf117d 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -2573,6 +2573,28 @@ if test x"$with_ads_support" != x"no"; then [Whether krb5_princ_component is available]) fi + AC_CACHE_CHECK([for memory keytab support], + samba_cv_HAVE_MEMORY_KEYTAB,[ + AC_TRY_RUN([ +#include + main() + { + krb5_context context; + krb5_keytab keytab; + + krb5_init_context(&context); + if (krb5_kt_resolve(context, "MEMORY:", &keytab)) + exit(0); + exit(1); + }], + samba_cv_HAVE_MEMORY_KEYTAB=no, + samba_cv_HAVE_MEMORY_KEYTAB=yes)]) + + if test x"$samba_cv_HAVE_MEMORY_KEYTAB" = x"yes"; then + AC_DEFINE(HAVE_MEMORY_KEYTAB,1, + [Whether in-memory keytabs are supported]) + fi + if test x"$ac_cv_lib_ext_krb5_krb5_mk_req_extended" = x"yes"; then AC_DEFINE(HAVE_KRB5,1,[Whether to have KRB5 support]) -- cgit