2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1997
5 Copyright (C) Luke Kenneth Casson Leighton 1996-1997
6 Copyright (C) Paul Ashton 1997
7 Copyright (C) Gerald (Jerry) Carter 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 as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef _RPC_LSA_H /* _RPC_LSA_H */
26 #define LSA_AUDIT_NUM_CATEGORIES_NT4 7
27 #define LSA_AUDIT_NUM_CATEGORIES_WIN2K 9
28 #define LSA_AUDIT_NUM_CATEGORIES LSA_AUDIT_NUM_CATEGORIES_NT4
30 #define POLICY_VIEW_LOCAL_INFORMATION 0x00000001
31 #define POLICY_VIEW_AUDIT_INFORMATION 0x00000002
32 #define POLICY_GET_PRIVATE_INFORMATION 0x00000004
33 #define POLICY_TRUST_ADMIN 0x00000008
34 #define POLICY_CREATE_ACCOUNT 0x00000010
35 #define POLICY_CREATE_SECRET 0x00000020
36 #define POLICY_CREATE_PRIVILEGE 0x00000040
37 #define POLICY_SET_DEFAULT_QUOTA_LIMITS 0x00000080
38 #define POLICY_SET_AUDIT_REQUIREMENTS 0x00000100
39 #define POLICY_AUDIT_LOG_ADMIN 0x00000200
40 #define POLICY_SERVER_ADMIN 0x00000400
41 #define POLICY_LOOKUP_NAMES 0x00000800
43 #define POLICY_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED_ACCESS |\
44 POLICY_VIEW_LOCAL_INFORMATION |\
45 POLICY_VIEW_AUDIT_INFORMATION |\
46 POLICY_GET_PRIVATE_INFORMATION |\
48 POLICY_CREATE_ACCOUNT |\
49 POLICY_CREATE_SECRET |\
50 POLICY_CREATE_PRIVILEGE |\
51 POLICY_SET_DEFAULT_QUOTA_LIMITS |\
52 POLICY_SET_AUDIT_REQUIREMENTS |\
53 POLICY_AUDIT_LOG_ADMIN |\
54 POLICY_SERVER_ADMIN |\
58 #define POLICY_READ ( STANDARD_RIGHTS_READ_ACCESS |\
59 POLICY_VIEW_AUDIT_INFORMATION |\
60 POLICY_GET_PRIVATE_INFORMATION)
62 #define POLICY_WRITE ( STD_RIGHT_READ_CONTROL_ACCESS |\
64 POLICY_CREATE_ACCOUNT |\
65 POLICY_CREATE_SECRET |\
66 POLICY_CREATE_PRIVILEGE |\
67 POLICY_SET_DEFAULT_QUOTA_LIMITS |\
68 POLICY_SET_AUDIT_REQUIREMENTS |\
69 POLICY_AUDIT_LOG_ADMIN |\
72 #define POLICY_EXECUTE ( STANDARD_RIGHTS_EXECUTE_ACCESS |\
73 POLICY_VIEW_LOCAL_INFORMATION |\
76 /*******************************************************/
77 #define MAX_REF_DOMAINS 32
79 /* This number is based on Win2k and later maximum response allowed */
80 #define MAX_LOOKUP_SIDS 20480 /* 0x5000 */
82 #endif /* _RPC_LSA_H */