summaryrefslogtreecommitdiffstats
path: root/src/util/sss_ldap.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-06-28 12:58:26 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-06-30 14:09:10 -0400
commite96c468ed06c3378e2aee6992dabe926d79e1a2d (patch)
tree44715455c2186cf29fa0d865c8d4db4ad498ba36 /src/util/sss_ldap.h
parentfda9ee900387d9d793e3696cd32b73c253097fe3 (diff)
downloadsssd-e96c468ed06c3378e2aee6992dabe926d79e1a2d.tar.gz
sssd-e96c468ed06c3378e2aee6992dabe926d79e1a2d.tar.xz
sssd-e96c468ed06c3378e2aee6992dabe926d79e1a2d.zip
Use ldap_init_fd() instead of ldap_initialize() if available
Diffstat (limited to 'src/util/sss_ldap.h')
-rw-r--r--src/util/sss_ldap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/sss_ldap.h b/src/util/sss_ldap.h
index 16c22641e..14fff29e7 100644
--- a/src/util/sss_ldap.h
+++ b/src/util/sss_ldap.h
@@ -21,8 +21,11 @@
#ifndef __SSS_LDAP_H__
#define __SSS_LDAP_H__
+#include <sys/types.h>
+#include <sys/socket.h>
#include <ldap.h>
#include <talloc.h>
+#include <tevent.h>
#ifdef LDAP_OPT_DIAGNOSTIC_MESSAGE
#define SDAP_DIAGNOSTIC_MESSAGE LDAP_OPT_DIAGNOSTIC_MESSAGE
@@ -49,4 +52,11 @@ int sss_ldap_control_create(const char *oid, int iscritical,
inline const char *
sss_ldap_escape_ip_address(TALLOC_CTX *mem_ctx, int family, const char *addr);
+struct tevent_req *sss_ldap_init_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ const char *uri,
+ struct sockaddr_storage *addr,
+ int addr_len);
+
+int sss_ldap_init_recv(struct tevent_req *req, LDAP **ldap, int *sd);
#endif /* __SSS_LDAP_H__ */