passdb-template.c revision 38ceb710e2bc957a66a75c68957cb87746682a75
7cb128dc4cae2a03a742f63ba7afee23c78e3af0Phil Carmody/* Copyright (c) 2003-2015 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));
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainenvoid passdb_template_export(struct passdb_template *tmpl,
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen unsigned int i, count;
65a1c01472ebf88b9f5bbd6636827902936d5497Timo Sirainen table = auth_request_get_var_expand_table(auth_request, NULL);
38ceb710e2bc957a66a75c68957cb87746682a75Timo Sirainen 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;