summaryrefslogtreecommitdiff
path: root/source3/include/rpc_lsa.h
blob: 2f23722d6afc93a68eeca7560e920205d65b08de (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
56
57
58
59
60
61
62
63
/* 
   Unix SMB/CIFS implementation.
   SMB parameters and setup
   Copyright (C) Andrew Tridgell               1992-1997
   Copyright (C) Luke Kenneth Casson Leighton  1996-1997
   Copyright (C) Paul Ashton                   1997
   Copyright (C) Gerald (Jerry) Carter         2005
   
   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 _RPC_LSA_H /* _RPC_LSA_H */
#define _RPC_LSA_H 

#define LSA_AUDIT_NUM_CATEGORIES_NT4	7
#define LSA_AUDIT_NUM_CATEGORIES_WIN2K	9
#define LSA_AUDIT_NUM_CATEGORIES LSA_AUDIT_NUM_CATEGORIES_NT4

#define LSA_POLICY_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED_ACCESS  |\
                            LSA_POLICY_VIEW_LOCAL_INFORMATION    |\
                            LSA_POLICY_VIEW_AUDIT_INFORMATION    |\
                            LSA_POLICY_GET_PRIVATE_INFORMATION   |\
                            LSA_POLICY_TRUST_ADMIN               |\
                            LSA_POLICY_CREATE_ACCOUNT            |\
                            LSA_POLICY_CREATE_SECRET             |\
                            LSA_POLICY_CREATE_PRIVILEGE          |\
                            LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS  |\
                            LSA_POLICY_SET_AUDIT_REQUIREMENTS    |\
                            LSA_POLICY_AUDIT_LOG_ADMIN           |\
                            LSA_POLICY_SERVER_ADMIN              |\
                            LSA_POLICY_LOOKUP_NAMES )


#define LSA_POLICY_READ       ( STANDARD_RIGHTS_READ_ACCESS      |\
                            LSA_POLICY_VIEW_AUDIT_INFORMATION    |\
                            LSA_POLICY_GET_PRIVATE_INFORMATION)

#define LSA_POLICY_WRITE      ( STD_RIGHT_READ_CONTROL_ACCESS     |\
                            LSA_POLICY_TRUST_ADMIN               |\
                            LSA_POLICY_CREATE_ACCOUNT            |\
                            LSA_POLICY_CREATE_SECRET             |\
                            LSA_POLICY_CREATE_PRIVILEGE          |\
                            LSA_POLICY_SET_DEFAULT_QUOTA_LIMITS  |\
                            LSA_POLICY_SET_AUDIT_REQUIREMENTS    |\
                            LSA_POLICY_AUDIT_LOG_ADMIN           |\
                            LSA_POLICY_SERVER_ADMIN)

#define LSA_POLICY_EXECUTE    ( STANDARD_RIGHTS_EXECUTE_ACCESS   |\
                            LSA_POLICY_VIEW_LOCAL_INFORMATION    |\
                            LSA_POLICY_LOOKUP_NAMES )

#endif /* _RPC_LSA_H */