diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/idmap.h | 6 | ||||
-rw-r--r-- | source3/include/smb.h | 3 |
2 files changed, 8 insertions, 1 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); diff --git a/source3/include/smb.h b/source3/include/smb.h index f85201ed30..6c44db5a34 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -276,13 +276,14 @@ typedef struct dom_sid { #define dom_sid28 dom_sid enum id_mapping { - ID_UNKNOWN, + ID_UNKNOWN = 0, ID_MAPPED, ID_UNMAPPED, ID_EXPIRED }; enum id_type { + ID_TYPE_NOT_SPECIFIED = 0, ID_TYPE_UID, ID_TYPE_GID }; |