Move the "rid_name" typedef to the only place where it might be used
[Samba.git] / source3 / rpc_server / srv_util.c
blobb276e75faa8f3317acfb178bbea923f5ec3e3717
1 /*
2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Andrew Tridgell 1992-1998
5 * Copyright (C) Luke Kenneth Casson Leighton 1996-1998,
6 * Copyright (C) Paul Ashton 1997-1998,
7 * Copyright (C) Andrew Bartlett 2004.
8 *
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 /* this module apparently provides an implementation of DCE/RPC over a
24 * named pipe (IPC$ connection using SMBtrans). details of DCE/RPC
25 * documentation are available (in on-line form) from the X-Open group.
27 * this module should provide a level of abstraction between SMB
28 * and DCE/RPC, while minimising the amount of mallocs, unnecessary
29 * data copies, and network traffic.
31 * in this version, which takes a "let's learn what's going on and
32 * get something running" approach, there is additional network
33 * traffic generated, but the code should be easier to understand...
35 * ... if you read the docs. or stare at packets for weeks on end.
39 #include "includes.h"
41 #undef DBGC_CLASS
42 #define DBGC_CLASS DBGC_RPC_SRV
44 #if 0 /* these aren't used currently but are here if you need them */
46 typedef struct {
47 uint32 rid;
48 const char *name;
49 } rid_name;
52 * A list of the rids of well known BUILTIN and Domain users
53 * and groups.
56 static const rid_name builtin_alias_rids[] =
58 { BUILTIN_ALIAS_RID_ADMINS , "Administrators" },
59 { BUILTIN_ALIAS_RID_USERS , "Users" },
60 { BUILTIN_ALIAS_RID_GUESTS , "Guests" },
61 { BUILTIN_ALIAS_RID_POWER_USERS , "Power Users" },
63 { BUILTIN_ALIAS_RID_ACCOUNT_OPS , "Account Operators" },
64 { BUILTIN_ALIAS_RID_SYSTEM_OPS , "System Operators" },
65 { BUILTIN_ALIAS_RID_PRINT_OPS , "Print Operators" },
66 { BUILTIN_ALIAS_RID_BACKUP_OPS , "Backup Operators" },
67 { BUILTIN_ALIAS_RID_REPLICATOR , "Replicator" },
68 { 0 , NULL }
71 /* array lookup of well-known Domain RID users. */
72 static const rid_name domain_user_rids[] =
74 { DOMAIN_USER_RID_ADMIN , "Administrator" },
75 { DOMAIN_USER_RID_GUEST , "Guest" },
76 { 0 , NULL }
79 /* array lookup of well-known Domain RID groups. */
80 static const rid_name domain_group_rids[] =
82 { DOMAIN_GROUP_RID_ADMINS , "Domain Admins" },
83 { DOMAIN_GROUP_RID_USERS , "Domain Users" },
84 { DOMAIN_GROUP_RID_GUESTS , "Domain Guests" },
85 { 0 , NULL }
87 #endif