source: trunk/server/source3/winbindd/idmap_proto.h

Last change on this file was 745, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.0

File size: 2.3 KB
Line 
1/*
2 * Unix SMB/CIFS implementation.
3 * ID Mapping
4 *
5 * Copyright (C) Tim Potter 2000
6 * Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2003
7 * Copyright (C) Simo Sorce 2003-2007
8 * Copyright (C) Jeremy Allison 2006
9 * Copyright (C) Michael Adam 2009-2010
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 */
24
25#ifndef _WINBINDD_IDMAP_PROTO_H_
26#define _WINBINDD_IDMAP_PROTO_H_
27
28/* The following definitions come from winbindd/idmap.c */
29
30bool idmap_is_offline(void);
31bool idmap_is_online(void);
32NTSTATUS smb_register_idmap(int version, const char *name,
33 struct idmap_methods *methods);
34void idmap_close(void);
35NTSTATUS idmap_allocate_uid(struct unixid *id);
36NTSTATUS idmap_allocate_gid(struct unixid *id);
37NTSTATUS idmap_backends_unixid_to_sid(const char *domname,
38 struct id_map *id);
39NTSTATUS idmap_backends_sid_to_unixid(const char *domname,
40 struct id_map *id);
41
42/* The following definitions come from winbindd/idmap_nss.c */
43
44NTSTATUS idmap_nss_init(void);
45
46/* The following definitions come from winbindd/idmap_passdb.c */
47
48NTSTATUS idmap_passdb_init(void);
49
50/* The following definitions come from winbindd/idmap_tdb.c */
51
52NTSTATUS idmap_tdb_init(void);
53
54/* The following definitions come from winbindd/idmap_util.c */
55
56NTSTATUS idmap_uid_to_sid(const char *domname, struct dom_sid *sid, uid_t uid);
57NTSTATUS idmap_gid_to_sid(const char *domname, struct dom_sid *sid, gid_t gid);
58NTSTATUS idmap_sid_to_uid(const char *dom_name, struct dom_sid *sid, uid_t *uid);
59NTSTATUS idmap_sid_to_gid(const char *domname, struct dom_sid *sid, gid_t *gid);
60bool idmap_unix_id_is_in_range(uint32_t id, struct idmap_domain *dom);
61
62#endif /* _WINBINDD_IDMAP_PROTO_H_ */
Note: See TracBrowser for help on using the repository browser.