userdb.c revision 6d239203867965ad42f38747f0b84e7314d215d3
/* Copyright (C) 2002-2003 Timo Sirainen */
#include "common.h"
#include "auth-module.h"
#include "userdb.h"
#include <stdlib.h>
#ifdef AUTH_MODULES
#endif
struct userdb_module *userdb;
void userdb_init(void)
{
i_fatal("USERDB environment is unset");
#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 AUTH_MODULES
if (userdb_module != NULL) {
}
#endif
/* initialize */
}
void userdb_deinit(void)
{
#ifdef AUTH_MODULES
if (userdb_module != NULL)
#endif
}