userdb-ldap.c revision ac75cf9b005f0fc574e49cd64b71db9bf5efbee2
/* Copyright (c) 2003-2007 Dovecot authors, see the included COPYING file */
#include "common.h"
#ifdef USERDB_LDAP
#include "hash.h"
#include "str.h"
#include "var-expand.h"
#include "auth-cache.h"
#include "db-ldap.h"
#include "userdb.h"
#include <ldap.h>
#include <stdlib.h>
struct ldap_userdb_module {
struct userdb_module module;
struct ldap_connection *conn;
};
struct userdb_ldap_request {
struct ldap_request request;
struct auth_request *auth_request;
};
static void
struct auth_request *auth_request)
{
struct db_ldap_result_iterate_context *ldap_iter;
}
}
{
struct userdb_ldap_request *urequest =
(struct userdb_ldap_request *) request;
int ret;
if (ret != LDAP_SUCCESS) {
return;
}
}
"Unknown user");
}
} else {
else {
"Multiple replies found for user");
}
}
}
{
struct ldap_userdb_module *module =
(struct ldap_userdb_module *)_module;
const struct var_expand_table *vars;
struct userdb_ldap_request *request;
str_truncate(str, 0);
"base=%s scope=%s filter=%s fields=%s",
}
static struct userdb_module *
{
struct ldap_userdb_module *module;
struct ldap_connection *conn;
}
const char *args ATTR_UNUSED)
{
struct ldap_userdb_module *module =
(struct ldap_userdb_module *)_module;
}
{
struct ldap_userdb_module *module =
(struct ldap_userdb_module *)_module;
}
struct userdb_module_interface userdb_ldap = {
"ldap",
};
#endif