mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 14:05:12 +00:00
5338eea8eb
The match function known the format of the pattern. The pattern can be stored in a list or in a tree. The pattern matching function use itself the good entry point and indexation type. Each pattern matching function return the struct pattern that match. If the flag "fill" is set, the struct pattern is filled, otherwise the content of this struct must not be used. With this feature, the general pattern matching function cannot have exceptions for building the "struct pattern".
38 lines
1000 B
C
38 lines
1000 B
C
/*
|
|
* User authentication & authorization.
|
|
*
|
|
* Copyright 2010 Krzysztof Piotr Oledzki <ole@ans.pl>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*
|
|
*/
|
|
|
|
#ifndef _PROTO_AUTH_H
|
|
#define _PROTO_AUTH_H
|
|
|
|
#include <common/config.h>
|
|
#include <types/auth.h>
|
|
|
|
extern struct userlist *userlist;
|
|
|
|
struct userlist *auth_find_userlist(char *name);
|
|
unsigned int auth_resolve_groups(struct userlist *l, char *groups);
|
|
int userlist_postinit();
|
|
void userlist_free(struct userlist *ul);
|
|
struct pattern *pat_match_auth(struct sample *smp, struct pattern_expr *expr, int fill);
|
|
int check_user(struct userlist *ul, const char *user, const char *pass);
|
|
int check_group(struct userlist *ul, char *name);
|
|
|
|
#endif /* _PROTO_AUTH_H */
|
|
|
|
/*
|
|
* Local variables:
|
|
* c-indent-level: 8
|
|
* c-basic-offset: 8
|
|
* End:
|
|
*/
|
|
|