userdb-sql.c revision 6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0
/* Copyright (C) 2004 Timo Sirainen, Alex Howansky */
#include "config.h"
#ifdef USERDB_SQL
#include "common.h"
#include "str.h"
#include "strescape.h"
#include "var-expand.h"
#include "db-sql.h"
#include "userdb.h"
#include <stdlib.h>
#include <string.h>
struct userdb_sql_request {
struct auth_request *auth_request;
void *context;
};
static struct sql_connection *userdb_sql_conn;
{
int ret;
if (ret < 0) {
i_error("sql(%s): User query failed: %s",
} else if (ret == 0) {
if (verbose) {
i_error("sql(%s): User not found",
}
} else {
i_error("sql(%s): Password query didn't return uid, "
}
i_error("sql(%s): Password query didn't return gid, "
}
}
else {
}
}
{
struct userdb_sql_request *sql_request;
str_escape));
}
static void userdb_sql_preinit(const char *args)
{
}
{
}
static void userdb_sql_deinit(void)
{
}
struct userdb_module userdb_sql = {
};
#endif