mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-11-03 18:11:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			58 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * include/haproxy/auth-t.h
 | 
						|
 * Types definitions for 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 _HAPROXY_AUTH_T_H
 | 
						|
#define _HAPROXY_AUTH_T_H
 | 
						|
 | 
						|
#include <haproxy/api-t.h>
 | 
						|
 | 
						|
#define AU_O_INSECURE	0x00000001		/* insecure, unencrypted password */
 | 
						|
 | 
						|
struct auth_groups {
 | 
						|
	struct auth_groups *next;
 | 
						|
	char *name;
 | 
						|
	char *groupusers; /* Just used during the configuration parsing. */
 | 
						|
};
 | 
						|
 | 
						|
struct auth_groups_list {
 | 
						|
	struct auth_groups_list *next;
 | 
						|
	struct auth_groups *group;
 | 
						|
};
 | 
						|
 | 
						|
struct auth_users {
 | 
						|
	struct auth_users *next;
 | 
						|
	unsigned int flags;
 | 
						|
	char *user, *pass;
 | 
						|
	union {
 | 
						|
		char *groups_names; /* Just used during the configuration parsing. */
 | 
						|
		struct auth_groups_list *groups;
 | 
						|
	} u;
 | 
						|
};
 | 
						|
 | 
						|
struct userlist {
 | 
						|
	struct userlist *next;
 | 
						|
	char *name;
 | 
						|
	struct auth_users *users;
 | 
						|
	struct auth_groups *groups;
 | 
						|
};
 | 
						|
 | 
						|
#endif /* _HAPROXY_AUTH_T_H */
 | 
						|
 | 
						|
/*
 | 
						|
 * Local variables:
 | 
						|
 *  c-indent-level: 8
 | 
						|
 *  c-basic-offset: 8
 | 
						|
 * End:
 | 
						|
 */
 | 
						|
 |