/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "passdb.h"
#include "passdb-template.h"
#include "password-scheme.h"
struct static_passdb_module {
const char *static_password_tmpl;
};
static enum passdb_result
const char **scheme_r)
{
const char *error;
*password_r = NULL;
"Failed to expand template: %s", error);
return PASSDB_RESULT_INTERNAL_FAILURE;
}
"Failed to expand password=%s: %s",
return PASSDB_RESULT_INTERNAL_FAILURE;
}
*password_r = "";
} else {
"No password returned (and no nopassword)");
return PASSDB_RESULT_PASSWORD_MISMATCH;
}
*password_r, *scheme_r);
return PASSDB_RESULT_OK;
}
static void
{
const char *static_password;
const char *static_scheme;
int ret;
if (result != PASSDB_RESULT_OK) {
return;
}
if (ret <= 0) {
return;
}
}
static void
{
const char *static_password;
const char *static_scheme;
}
static struct passdb_module *
{
const char *value;
}
"static",
NULL,
NULL,
};