summaryrefslogtreecommitdiffstats
path: root/src/auth/userdb-template.h
blob: a146a87e96252eb396850e564efd7fff20f10d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef USERDB_TEMPLATE_H
#define USERDB_TEMPLATE_H

struct userdb_template *
userdb_template_build(pool_t pool, const char *userdb_name, const char *args);
int userdb_template_export(struct userdb_template *tmpl,
			   struct auth_request *auth_request,
			   const char **error_r);
bool userdb_template_remove(struct userdb_template *tmpl,
			    const char *key, const char **value_r);
bool userdb_template_is_empty(struct userdb_template *tmpl);
const char *const *userdb_template_get_args(struct userdb_template *tmpl,
					    unsigned int *count_r);

#endif