blob: 34f5d2d1b6d8641536d2e1b78d686e27a0ff1585 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
SSSD
Authors:
Stephen Gallagher <sgallagh@redhat.com>
Copyright (C) 2012 Red Hat
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 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AD_ACCESS_H_
#define AD_ACCESS_H_
struct ad_access_ctx {
struct dp_option *ad_options;
struct sdap_access_ctx *sdap_access_ctx;
struct ad_id_ctx *ad_id_ctx;
/* supported GPO access control modes */
enum gpo_access_control_mode {
GPO_ACCESS_CONTROL_DISABLED,
GPO_ACCESS_CONTROL_PERMISSIVE,
GPO_ACCESS_CONTROL_ENFORCING
} gpo_access_control_mode;
int gpo_cache_timeout;
/* supported GPO map options */
enum gpo_map_type {
GPO_MAP_INTERACTIVE = 0,
GPO_MAP_REMOTE_INTERACTIVE,
GPO_MAP_NETWORK,
GPO_MAP_BATCH,
GPO_MAP_SERVICE,
GPO_MAP_PERMIT,
GPO_MAP_DENY,
GPO_MAP_NUM_OPTS
} gpo_map_type;
hash_table_t *gpo_map_options_table;
enum gpo_map_type gpo_default_right;
};
void
ad_access_handler(struct be_req *breq);
#endif /* AD_ACCESS_H_ */
|