diff options
author | Jim McDonough <jmcd@samba.org> | 2003-09-02 17:02:09 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2003-09-02 17:02:09 +0000 |
commit | 409c6d1407dd0baf6724a013908871994ca27e15 (patch) | |
tree | dbc8be8a97ffb0d715265679f408f09981e8dda4 /source3 | |
parent | 2c4c43325bf77ea29b3fa1a2a70f12f3a1614550 (diff) | |
download | samba-409c6d1407dd0baf6724a013908871994ca27e15.tar.gz samba-409c6d1407dd0baf6724a013908871994ca27e15.tar.bz2 samba-409c6d1407dd0baf6724a013908871994ca27e15.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 22 |
1 files changed, 22 insertions, 0 deletions
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<krb5.h> + 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]) |