summaryrefslogtreecommitdiff
path: root/source3/include/idmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/idmap.h')
-rw-r--r--source3/include/idmap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/idmap.h b/source3/include/idmap.h
index 472358a230..f4926f1e5c 100644
--- a/source3/include/idmap.h
+++ b/source3/include/idmap.h
@@ -52,8 +52,14 @@ struct idmap_methods {
/* Called when backend is first loaded */
NTSTATUS (*init)(struct idmap_domain *dom);
+ /* Map an array of uids/gids to SIDs. The caller specifies
+ the uid/gid and type. Gets back the SID. */
NTSTATUS (*unixids_to_sids)(struct idmap_domain *dom, struct id_map **ids);
+
+ /* Map an arry of SIDs to uids/gids. The caller sets the SID
+ and type and gets back a uid or gid. */
NTSTATUS (*sids_to_unixids)(struct idmap_domain *dom, struct id_map **ids);
+
NTSTATUS (*set_mapping)(struct idmap_domain *dom, const struct id_map *map);
NTSTATUS (*remove_mapping)(struct idmap_domain *dom, const struct id_map *map);