#ifndef LDAP_CLIENT_H
#define LDAP_CLIENT_H
+#include "ldap-settings.h"
+
enum ldap_scope {
LDAP_SEARCH_SCOPE_BASE = 0x0000,
LDAP_SEARCH_SCOPE_ONE = 0x0001,
callback finishes. */
typedef void ldap_result_callback_t(struct ldap_result *result, void *context);
-struct ldap_client_settings {
- /* NOTE: when adding here, remember to update
- ldap_connection_have_settings() and ldap_connection_init() */
- const char *uris;
- const char *auth_dn;
- const char *auth_dn_password;
-
- struct event *event_parent;
- const struct ssl_iostream_settings *ssl_ioset;
-
- unsigned int timeout_secs;
- unsigned int max_idle_time_secs;
- unsigned int debug_level;
- bool require_ssl;
- bool starttls;
-};
-
struct ldap_search_input {
const char *base_dn;
const char *filter;
--- /dev/null
+#ifndef LDAP_SETTINGS_H
+#define LDAP_SETTINGS_H
+
+struct ldap_client_settings {
+ pool_t pool;
+
+ const char *uris;
+ const char *auth_dn;
+ const char *auth_dn_password;
+
+ unsigned int timeout_secs;
+ unsigned int max_idle_time_secs;
+ unsigned int debug_level;
+ bool require_ssl;
+ bool starttls;
+
+ struct event *event_parent;
+ const struct ssl_iostream_settings *ssl_ioset;
+};
+
+#endif