Krzysztof Piotr Oledzki | 9610504 | 2010-01-29 17:50:44 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 19 | extern struct userlist *userlist; |
| 20 | |
| 21 | struct userlist *auth_find_userlist(char *name); |
| 22 | unsigned int auth_resolve_groups(struct userlist *l, char *groups); |
Krzysztof Piotr Oledzki | 9610504 | 2010-01-29 17:50:44 +0100 | [diff] [blame] | 23 | void userlist_free(struct userlist *ul); |
Willy Tarreau | 3740635 | 2012-04-23 16:16:37 +0200 | [diff] [blame] | 24 | int acl_match_auth(struct sample *smp, struct acl_pattern *pattern); |
Willy Tarreau | 8f7406e | 2012-04-20 18:16:26 +0200 | [diff] [blame] | 25 | int check_user(struct userlist *ul, unsigned int group_mask, const char *user, const char *pass); |
Krzysztof Piotr Oledzki | 9610504 | 2010-01-29 17:50:44 +0100 | [diff] [blame] | 26 | |
| 27 | #endif /* _PROTO_AUTH_H */ |
| 28 | |
| 29 | /* |
| 30 | * Local variables: |
| 31 | * c-indent-level: 8 |
| 32 | * c-basic-offset: 8 |
| 33 | * End: |
| 34 | */ |
| 35 | |