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.
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.
42 #define DBGC_CLASS DBGC_RPC_SRV
44 #if 0 /* these aren't used currently but are here if you need them */
46 * A list of the rids of well known BUILTIN and Domain users
50 static const rid_name builtin_alias_rids
[] =
52 { BUILTIN_ALIAS_RID_ADMINS
, "Administrators" },
53 { BUILTIN_ALIAS_RID_USERS
, "Users" },
54 { BUILTIN_ALIAS_RID_GUESTS
, "Guests" },
55 { BUILTIN_ALIAS_RID_POWER_USERS
, "Power Users" },
57 { BUILTIN_ALIAS_RID_ACCOUNT_OPS
, "Account Operators" },
58 { BUILTIN_ALIAS_RID_SYSTEM_OPS
, "System Operators" },
59 { BUILTIN_ALIAS_RID_PRINT_OPS
, "Print Operators" },
60 { BUILTIN_ALIAS_RID_BACKUP_OPS
, "Backup Operators" },
61 { BUILTIN_ALIAS_RID_REPLICATOR
, "Replicator" },
65 /* array lookup of well-known Domain RID users. */
66 static const rid_name domain_user_rids
[] =
68 { DOMAIN_USER_RID_ADMIN
, "Administrator" },
69 { DOMAIN_USER_RID_GUEST
, "Guest" },
73 /* array lookup of well-known Domain RID groups. */
74 static const rid_name domain_group_rids
[] =
76 { DOMAIN_GROUP_RID_ADMINS
, "Domain Admins" },
77 { DOMAIN_GROUP_RID_USERS
, "Domain Users" },
78 { DOMAIN_GROUP_RID_GUESTS
, "Domain Guests" },