mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
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 85737fc937
)
This commit is contained in:
parent
2c4c43325b
commit
409c6d1407
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user