1 /*****************************************************************************
3 * CGIAUTH.H - Authorization utilities header file
5 * Last Modified: 11-24-2005
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 *****************************************************************************/
35 typedef struct authdata_struct
{
37 int authorized_for_all_hosts
;
38 int authorized_for_all_host_commands
;
39 int authorized_for_all_services
;
40 int authorized_for_all_service_commands
;
41 int authorized_for_system_information
;
42 int authorized_for_system_commands
;
43 int authorized_for_configuration_information
;
49 int get_authentication_information(authdata
*); /* gets current authentication information */
51 int is_authorized_for_host(host
*,authdata
*);
52 int is_authorized_for_service(service
*,authdata
*);
54 int is_authorized_for_all_hosts(authdata
*);
55 int is_authorized_for_all_services(authdata
*);
57 int is_authorized_for_system_information(authdata
*);
58 int is_authorized_for_system_commands(authdata
*);
59 int is_authorized_for_host_commands(host
*,authdata
*);
60 int is_authorized_for_service_commands(service
*,authdata
*);
62 int is_authorized_for_hostgroup(hostgroup
*,authdata
*);
63 int is_authorized_for_servicegroup(servicegroup
*,authdata
*);
65 int is_authorized_for_configuration_information(authdata
*);