/* Copyright (c) 2003-2018 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"
struct static_context {
void *old_context;
};
struct static_userdb_module {
};
{
(struct static_userdb_module *)_module;
const char *error;
"Failed to expand template: %s", error);
}
}
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;
/* 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.. */
/* kludge: temporarily work as if we weren't doing
a userdb lookup. this is to get auth cache to use
passdb caching instead of userdb caching. */
} else {
uchar_empty_ptr, 0, auth_request);
}
} else {
}
}
static struct userdb_module *
{
const char *value;
}
}
"static",
NULL,
NULL,
NULL,
NULL,
};