userdb.c revision 91e4199476cb2add8143c18583fa57e1decfea88
/* Copyright (C) 2002-2003 Timo Sirainen */
#include "common.h"
#include "auth-module.h"
#include "userdb.h"
#include <stdlib.h>
#ifdef HAVE_MODULES
#endif
struct userdb_module *userdb;
void userdb_init(void)
{
i_fatal("USERDB environment is unset");
args++;
#ifdef USERDB_PASSWD
userdb = &userdb_passwd;
#endif
#ifdef USERDB_PASSWD_FILE
#endif
#ifdef USERDB_STATIC
userdb = &userdb_static;
#endif
#ifdef USERDB_VPOPMAIL
#endif
#ifdef USERDB_LDAP
userdb = &userdb_ldap;
#endif
#ifdef USERDB_PGSQL
userdb = &userdb_pgsql;
#endif
#ifdef USERDB_MYSQL
userdb = &userdb_mysql;
#endif
#ifdef HAVE_MODULES
if (userdb_module != NULL) {
}
#endif
/* initialize */
}
void userdb_deinit(void)
{
#ifdef HAVE_MODULES
if (userdb_module != NULL)
#endif
}