blob: a9606134b542457f0a9a9c4f2329cdd7a6bc0a9e [file] [log] [blame]
Krzysztof Piotr Oledzki96105042010-01-29 17:50:44 +01001/*
2 * User authentication & authorization.
3 *
4 * Copyright 2010 Krzysztof Piotr Oledzki <ole@ans.pl>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
10 *
11 */
12
13#ifndef _PROTO_AUTH_H
14#define _PROTO_AUTH_H
15
16#include <common/config.h>
17#include <types/auth.h>
18
19extern struct userlist *userlist;
20
21struct userlist *auth_find_userlist(char *name);
22unsigned int auth_resolve_groups(struct userlist *l, char *groups);
Thierry FOURNIER9eec0a62014-01-22 18:38:02 +010023int userlist_postinit();
Krzysztof Piotr Oledzki96105042010-01-29 17:50:44 +010024void userlist_free(struct userlist *ul);
Willy Tarreau0cba6072013-11-28 22:21:02 +010025enum pat_match_res pat_match_auth(struct sample *smp, struct pattern *pattern);
Thierry FOURNIER9eec0a62014-01-22 18:38:02 +010026int check_user(struct userlist *ul, const char *user, const char *pass);
27int check_group(struct userlist *ul, char *name);
Krzysztof Piotr Oledzki96105042010-01-29 17:50:44 +010028
29#endif /* _PROTO_AUTH_H */
30
31/*
32 * Local variables:
33 * c-indent-level: 8
34 * c-basic-offset: 8
35 * End:
36 */
37