2010-01-29 16:50:44 +00:00
|
|
|
/*
|
|
|
|
* 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);
|
|
|
|
void userlist_free(struct userlist *ul);
|
2012-04-23 14:16:37 +00:00
|
|
|
int acl_match_auth(struct sample *smp, struct acl_pattern *pattern);
|
2012-04-20 16:16:26 +00:00
|
|
|
int check_user(struct userlist *ul, unsigned int group_mask, const char *user, const char *pass);
|
2010-01-29 16:50:44 +00:00
|
|
|
|
|
|
|
#endif /* _PROTO_AUTH_H */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* c-indent-level: 8
|
|
|
|
* c-basic-offset: 8
|
|
|
|
* End:
|
|
|
|
*/
|
|
|
|
|