userdb-static.c revision 04052d7cacaa866a3f00afb4e104fa46c04c1dd7
/* Copyright (c) 2003-2011 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "array.h"
#include "str.h"
#include "var-expand.h"
#include "userdb.h"
#include "userdb-template.h"
#include <stdlib.h>
struct static_context {
void *old_context;
};
struct static_userdb_module {
struct userdb_module module;
struct userdb_template *tmpl;
unsigned int allow_all_users:1;
};
{
struct static_userdb_module *module =
(struct static_userdb_module *)_module;
}
static void
const unsigned char *credentials ATTR_UNUSED,
struct auth_request *auth_request)
{
switch (result) {
case PASSDB_RESULT_OK:
break;
break;
"passdb doesn't support lookups, "
"can't verify user's existence");
/* fall through */
default:
break;
}
}
{
struct static_userdb_module *module =
(struct static_userdb_module *)_module;
struct static_context *ctx;
/* this is a userdb-only lookup. we need to know if this
users exists or not. use a passdb lookup to do that.
if the passdb doesn't support returning credentials, this
will of course fail.. */
} else {
NULL, 0, auth_request);
}
} else {
}
}
static struct userdb_module *
{
struct static_userdb_module *module;
const char *value;
}
}
struct userdb_module_interface userdb_static = {
"static",
NULL,
NULL,
NULL,
NULL,
};