diff options
author | Sumit Bose <sbose@redhat.com> | 2010-02-12 12:23:12 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-12 08:44:12 -0500 |
commit | 1d3fb15435dd7945b50233161a6247bd0dde965f (patch) | |
tree | 9e2c10a4894ca53d9563808d71f2ffe09addb1f7 | |
parent | 61f4ae23334073bb989469b8c9ef168389db24b3 (diff) | |
download | sssd-1d3fb15435dd7945b50233161a6247bd0dde965f.tar.gz sssd-1d3fb15435dd7945b50233161a6247bd0dde965f.tar.xz sssd-1d3fb15435dd7945b50233161a6247bd0dde965f.zip |
Add check for broken LDAP connection callbacks
-rw-r--r-- | server/external/ldap.m4 | 12 | ||||
-rw-r--r-- | server/man/sssd-ldap.5.xml | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/server/external/ldap.m4 b/server/external/ldap.m4 index ee425d831..87d95fa8b 100644 --- a/server/external/ldap.m4 +++ b/server/external/ldap.m4 @@ -45,9 +45,19 @@ CFLAGS="$CFLAGS $OPENLDAP_CFLAGS" LIBS="$LIBS $OPENLDAP_LIBS" AC_CHECK_FUNCS([ldap_control_create]) AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg], - [AC_DEFINE([HAVE_LDAP_CONNCB], [1], + [AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[ #include <ldap.h> ]], + [[ + struct ldap_conncb cb; + return ldap_set_option(NULL, LDAP_OPT_CONNECT_CB, &cb); + ]] )], + [AC_DEFINE([HAVE_LDAP_CONNCB], [1], [Define if LDAP connection callbacks are available])], + [AC_MSG_WARN([Found broken callback implementation])], + [])], [], [[#include <ldap.h>]]) + CFLAGS=$SAVE_CFLAGS LIBS=$SAVE_LIBS diff --git a/server/man/sssd-ldap.5.xml b/server/man/sssd-ldap.5.xml index 2ef514375..b79cbbc9a 100644 --- a/server/man/sssd-ldap.5.xml +++ b/server/man/sssd-ldap.5.xml @@ -623,7 +623,7 @@ </para> <para> Please note that sssd only supports referral chasing - when it is compiled with OpenLDAP version 2.4.12 or + when it is compiled with OpenLDAP version 2.4.13 or higher. </para> <para> |