blob: 0d358d3fbe6a2185faf7ae5c47e57aac6cff21bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
Unix SMB/CIFS implementation.
Idmap headers
Copyright (C) Anthony Liguori 2003
Copyright (C) Simo Sorce 2003
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#define ID_USERID 1
#define ID_GROUPID 2
#define ID_OTHER 3
typedef union id_t {
uid_t uid;
gid_t gid;
} id_t;
/* Filled out by IDMAP backends */
struct idmap_methods {
/* Called when backend is first loaded */
NTSTATUS (*init)(void);
NTSTATUS (*get_sid_from_id)(DOM_SID *sid, id_t id, int id_type);
NTSTATUS (*get_id_from_sid)(id_t *id, int *id_type, DOM_SID *sid);
/* Called when backend is unloaded */
NTSTATUS (*close)(void);
/* Called to dump backend status */
void (*status)(void);
};
|