passdb-template.c revision 0f5dc4da3982053036be65190e44bf28a67b1ca2
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3Timo Sirainen/* Copyright (c) 2003-2016 Dovecot authors, see the included COPYING file */
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainenstruct passdb_template *passdb_template_build(pool_t pool, const char *args)
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen tmpl = p_new(pool, struct passdb_template, 1);
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen p_array_init(&tmpl->args, pool, str_array_length(tmp));
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainenint passdb_template_export(struct passdb_template *tmpl,
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen const char **error_r)
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen unsigned int i, count;
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen table = auth_request_get_var_expand_table(auth_request, NULL);
0f5dc4da3982053036be65190e44bf28a67b1ca2Timo Sirainen if (auth_request_var_expand_with_table(str, args[i+1],
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen auth_request_set_field(auth_request, args[i], value,
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainenbool passdb_template_remove(struct passdb_template *tmpl,
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen const char *const *args;
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen unsigned int i, count;