42900a6690e9da5b611297193063c98335cda565
[samba.git] / source3 / winbindd / idmap_proto.h
1 /* The following definitions come from winbindd/idmap.c  */
2
3 bool idmap_is_offline(void);
4 bool idmap_is_online(void);
5 NTSTATUS smb_register_idmap(int version, const char *name,
6                             struct idmap_methods *methods);
7 void idmap_close(void);
8 NTSTATUS idmap_init_cache(void);
9 NTSTATUS idmap_allocate_uid(struct unixid *id);
10 NTSTATUS idmap_allocate_gid(struct unixid *id);
11 NTSTATUS idmap_backends_unixid_to_sid(const char *domname,
12                                       struct id_map *id);
13 NTSTATUS idmap_backends_sid_to_unixid(const char *domname,
14                                       struct id_map *id);
15 NTSTATUS idmap_new_mapping(const struct dom_sid *psid, enum id_type type,
16                            struct unixid *pxid);
17
18 /* The following definitions come from winbindd/idmap_nss.c  */
19
20 NTSTATUS idmap_nss_init(void);
21
22 /* The following definitions come from winbindd/idmap_passdb.c  */
23
24 NTSTATUS idmap_passdb_init(void);
25
26 /* The following definitions come from winbindd/idmap_tdb.c  */
27
28 NTSTATUS idmap_tdb_init(void);
29
30 /* The following definitions come from winbindd/idmap_util.c  */
31
32 NTSTATUS idmap_uid_to_sid(const char *domname, struct dom_sid *sid, uid_t uid);
33 NTSTATUS idmap_gid_to_sid(const char *domname, struct dom_sid *sid, gid_t gid);
34 NTSTATUS idmap_sid_to_uid(const char *dom_name, struct dom_sid *sid, uid_t *uid);
35 NTSTATUS idmap_sid_to_gid(const char *domname, struct dom_sid *sid, gid_t *gid);
36 bool idmap_unix_id_is_in_range(uint32_t id, struct idmap_domain *dom);