s3-builtin: Add missing builtin groups.
[Samba/bjacke.git] / source3 / include / rpc_misc.h
blobccf7d6a785301f3cf11dd513b8572205ce22975e
1 /*
2 Unix SMB/CIFS implementation.
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_MISC_H /* _RPC_MISC_H */
24 #define _RPC_MISC_H
26 #define SMB_RPC_INTERFACE_VERSION 1
29 /**********************************************************************
30 * well-known RIDs - Relative IDs
31 **********************************************************************/
33 /* RIDs - Well-known users ... */
34 #define DOMAIN_USER_RID_ADMIN (0x000001F4L)
35 #define DOMAIN_USER_RID_GUEST (0x000001F5L)
36 #define DOMAIN_USER_RID_KRBTGT (0x000001F6L)
38 /* RIDs - well-known groups ... */
39 #define DOMAIN_GROUP_RID_ADMINS (0x00000200L)
40 #define DOMAIN_GROUP_RID_USERS (0x00000201L)
41 #define DOMAIN_GROUP_RID_GUESTS (0x00000202L)
42 #define DOMAIN_GROUP_RID_COMPUTERS (0x00000203L)
44 #define DOMAIN_GROUP_RID_CONTROLLERS (0x00000204L)
45 #define DOMAIN_GROUP_RID_CERT_ADMINS (0x00000205L)
46 #define DOMAIN_GROUP_RID_SCHEMA_ADMINS (0x00000206L)
47 #define DOMAIN_GROUP_RID_ENTERPRISE_ADMINS (0x00000207L)
49 /* is the following the right number? I bet it is --simo
50 #define DOMAIN_GROUP_RID_POLICY_ADMINS (0x00000208L)
53 /* RIDs - well-known aliases ... */
54 #define BUILTIN_ALIAS_RID_ADMINS (0x00000220L)
55 #define BUILTIN_ALIAS_RID_USERS (0x00000221L)
56 #define BUILTIN_ALIAS_RID_GUESTS (0x00000222L)
57 #define BUILTIN_ALIAS_RID_POWER_USERS (0x00000223L)
59 #define BUILTIN_ALIAS_RID_ACCOUNT_OPS (0x00000224L)
60 #define BUILTIN_ALIAS_RID_SYSTEM_OPS (0x00000225L)
61 #define BUILTIN_ALIAS_RID_PRINT_OPS (0x00000226L)
62 #define BUILTIN_ALIAS_RID_BACKUP_OPS (0x00000227L)
64 #define BUILTIN_ALIAS_RID_REPLICATOR (0x00000228L)
65 #define BUILTIN_ALIAS_RID_RAS_SERVERS (0x00000229L)
66 #define BUILTIN_ALIAS_RID_PRE_2K_ACCESS (0x0000022aL)
67 #define BUILTIN_ALIAS_RID_REMOTE_DESKTOP_USERS (0x0000022bL)
68 #define BUILTIN_ALIAS_RID_NETWORK_CONF_OPERATORS (0x0000022cL)
69 #define BUILTIN_ALIAS_RID_INCOMING_FOREST_TRUST (0x0000022dL)
70 #define BUILTIN_ALIAS_RID_PERFMON_USERS (0x0000022eL)
71 #define BUILTIN_ALIAS_RID_PERFLOG_USERS (0x0000022fL)
72 #define BUILTIN_ALIAS_RID_AUTH_ACCESS (0x00000230L)
73 #define BUILTIN_ALIAS_RID_TS_LICENSE_SERVERS (0x00000231L)
77 /**********************************************************************
78 * RPC policy handle used pretty much everywhere
79 **********************************************************************/
81 #define OUR_HANDLE(hnd) (((hnd)==NULL) ? "NULL" :\
82 ( IVAL((hnd)->uuid.node,2) == (uint32)sys_getpid() ? "OURS" : \
83 "OTHER")), ((unsigned int)IVAL((hnd)->uuid.node,2)),\
84 ((unsigned int)sys_getpid() )
87 /**********************************************************************
88 * UNICODE string variations
89 **********************************************************************/
92 typedef struct { /* UNISTR - unicode string size and buffer */
93 uint16 *buffer; /* unicode characters. ***MUST*** be
94 little-endian. ***MUST*** be null-terminated */
95 } UNISTR;
97 #endif /* _RPC_MISC_H */