diff options
author | Sumit Bose <sbose@redhat.com> | 2010-02-04 11:53:36 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-05 09:43:43 -0500 |
commit | c12530bed53c51bcf217624ad523ef2b6ddd16c0 (patch) | |
tree | bafea5bcfa48ded5de18d8a893632a4f907d7de5 /server/external | |
parent | 764d6246eea5a63b203a5dc6c905b5938d9b62e4 (diff) | |
download | sssd-c12530bed53c51bcf217624ad523ef2b6ddd16c0.tar.gz sssd-c12530bed53c51bcf217624ad523ef2b6ddd16c0.tar.bz2 sssd-c12530bed53c51bcf217624ad523ef2b6ddd16c0.zip |
Reactivate old fd handling conditionally
Older versions of openLDAP do not provide a connection callback. This
patch adds a configure check to see if the callback is available and
activates the old way of handling the file description of the LDAP
connection. This also means that it is not possible to follow referrals.
Diffstat (limited to 'server/external')
-rw-r--r-- | server/external/ldap.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/external/ldap.m4 b/server/external/ldap.m4 index a17ed7e9..ee425d83 100644 --- a/server/external/ldap.m4 +++ b/server/external/ldap.m4 @@ -44,6 +44,10 @@ SAVE_LIBS=$LIBS 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], + [Define if LDAP connection callbacks are available])], + [], [[#include <ldap.h>]]) CFLAGS=$SAVE_CFLAGS LIBS=$SAVE_LIBS |