syncing up changes in 2.2
[Samba.git] / source / include / mapping.h
blob2543f6e42ae629ab2ef92b44c00abb823d25b6be
1 /*
2 * Unix SMB/Netbios implementation.
3 * Version 1.9.
4 * RPC Pipe client / server routines
5 * Copyright (C) Andrew Tridgell 1992-2000,
6 * Copyright (C) Jean François Micouleau 1998-2001.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 typedef struct _GROUP_MAP {
24 gid_t gid;
25 DOM_SID sid;
26 enum SID_NAME_USE sid_name_use;
27 fstring nt_name;
28 fstring comment;
29 uint32 privilege;
30 } GROUP_MAP;
32 typedef struct _PRIVS {
33 uint32 se_priv;
34 char *priv;
35 char *description;
36 } PRIVS;
38 #define SE_PRIV_NONE 0x0000
39 #define SE_PRIV_ADD_USERS 0x0001
40 #define SE_PRIV_ADD_MACHINES 0x0002
41 #define SE_PRIV_PRINT_OPERATOR 0x0004
42 #define SE_PRIV_ALL 0xffff
44 #define PRIV_ALL_INDEX 4