db-sql.c revision 43d3ea2780b5f8557ede7b4c039e8f56cb8d357d
/* Copyright (c) 2003-2009 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#if defined(PASSDB_SQL) || defined(USERDB_SQL)
#include "settings.h"
#include "auth-request.h"
#include "db-sql.h"
#include <stddef.h>
#include <stdlib.h>
static struct setting_def setting_defs[] = {
{ 0, NULL, 0 }
};
static struct sql_settings default_sql_settings = {
MEMBER(password_query) "SELECT username, domain, password FROM users WHERE username = '%n' AND domain = '%d'",
};
{
struct sql_connection *conn;
return conn;
}
return NULL;
}
struct sql_connection *conn)
{
}
{
struct sql_connection *conn;
return conn;
}
if (*config_path == '\0')
i_fatal("sql: Configuration file path not given");
i_fatal("sql: driver not set in configuration file %s",
}
i_fatal("sql: connect string not set in configuration file %s",
}
connections = conn;
return conn;
}
{
return;
}
#endif