nss-pam-ldapd branch master updated. 0.9.2-31-gf6a0675
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.2-31-gf6a0675
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.2-31-gf6a0675
- Date: Sat, 25 Jan 2014 18:23:56 +0100 (CET)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via f6a067594d2527f0ce950c3117138df09413c007 (commit)
from 043838c57b53432d5b14cbb32e46f06b2f9b5fb6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=f6a067594d2527f0ce950c3117138df09413c007
commit f6a067594d2527f0ce950c3117138df09413c007
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sat Jan 25 18:19:02 2014 +0100
Add test for krb5 thread safety
This adds a test that checks the return value of krb5_is_thread_safe()
to see if krb5 is thread safe (during build) and issues a warning if it
is not.
nslcd does not directly link to krb5 but the library may be loaded (by
GSSAPI) if Kerberos is used to authenticate nslcd to the LDAP server.
diff --git a/configure.ac b/configure.ac
index 864d5dc..213c510 100644
--- a/configure.ac
+++ b/configure.ac
@@ -675,7 +675,7 @@ then
fi
if test "x$enable_kerberos" = "xyes"
then
- AC_CHECK_HEADERS(gssapi/gssapi.h gssapi/gssapi_generic.h
gssapi/gssapi_krb5.h gssapi.h)
+ AC_CHECK_HEADERS(gssapi/gssapi.h gssapi/gssapi_generic.h
gssapi/gssapi_krb5.h gssapi.h krb5.h)
fi
AC_CHECK_HEADERS(regex.h)
@@ -788,6 +788,41 @@ then
then
AC_SEARCH_LIBS(gss_krb5_ccache_name, gssapi gssapi_krb5)
AC_CHECK_FUNCS(gss_krb5_ccache_name)
+
+ # save CFLAGS and LIBS to restore later
+ krb5_save_CFLAGS="$CFLAGS"
+ krb5_save_LIBS="$LIBS"
+
+ # find library that contains krb5_is_thread_safe
+ AC_SEARCH_LIBS(krb5_sendauth, [krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'])
+ AC_CHECK_FUNCS(krb5_is_thread_safe)
+
+ # see if krb5 is thread safe
+ if test "x$ac_cv_func_krb5_is_thread_safe" == "xyes"
+ then
+ AC_CACHE_CHECK(
+ [krb5 thread safety],
+ nslcd_cv_krb5_is_thread_safe,
+ [AC_RUN_IFELSE(
+ [AC_LANG_PROGRAM([[
+ #include <krb5.h>
+ ]], [[
+ if (!krb5_is_thread_safe())
+ return 1;
+ ]])],
+ [nslcd_cv_krb5_is_thread_safe=yes],
+ [nslcd_cv_krb5_is_thread_safe=no],
+ [nslcd_cv_krb5_is_thread_safe=unknown])])
+ if test "x$nslcd_cv_krb5_is_thread_safe" == "xno"
+ then
+ AC_MSG_WARN([krb5 is NOT thread safe])
+ fi
+ fi
+
+ # restore CFLAGS and LIBS because we don't directly use krb5
+ CFLAGS="$krb5_save_CFLAGS"
+ LIBS="$krb5_save_LIBS"
+
fi
# check for ldap function availability
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
hooks/post-receive
--
nss-pam-ldapd
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd branch master updated. 0.9.2-31-gf6a0675,
Commits of the nss-pam-ldapd project