summaryrefslogtreecommitdiffstats
path: root/server/providers/ldap/sdap_async_private.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-02-04 11:53:36 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-02-05 09:43:43 -0500
commitc12530bed53c51bcf217624ad523ef2b6ddd16c0 (patch)
treebafea5bcfa48ded5de18d8a893632a4f907d7de5 /server/providers/ldap/sdap_async_private.h
parent764d6246eea5a63b203a5dc6c905b5938d9b62e4 (diff)
downloadsssd-c12530bed53c51bcf217624ad523ef2b6ddd16c0.tar.gz
sssd-c12530bed53c51bcf217624ad523ef2b6ddd16c0.tar.xz
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/providers/ldap/sdap_async_private.h')
-rw-r--r--server/providers/ldap/sdap_async_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/providers/ldap/sdap_async_private.h b/server/providers/ldap/sdap_async_private.h
index 5549626a4..55f76ed70 100644
--- a/server/providers/ldap/sdap_async_private.h
+++ b/server/providers/ldap/sdap_async_private.h
@@ -22,15 +22,21 @@
#ifndef _SDAP_ASYNC_PRIVATE_H_
#define _SDAP_ASYNC_PRIVATE_H_
+#include "config.h"
#include "providers/ldap/sdap_async.h"
void make_realm_upper_case(const char *upn);
struct sdap_handle *sdap_handle_create(TALLOC_CTX *memctx);
+#ifdef HAVE_LDAP_CONNCB
int sdap_ldap_connect_callback_add(LDAP *ld, Sockbuf *sb, LDAPURLDesc *srv,
struct sockaddr *addr, struct ldap_conncb *ctx);
void sdap_ldap_connect_callback_del(LDAP *ld, Sockbuf *sb,
struct ldap_conncb *ctx);
+#else
+int sdap_install_ldap_callbacks(struct sdap_handle *sh,
+ struct tevent_context *ev);
+#endif
int sdap_op_add(TALLOC_CTX *memctx, struct tevent_context *ev,
struct sdap_handle *sh, int msgid,