diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/include/rpc_misc.h | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 3086c6cd24..ff44a5841f 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1611,6 +1611,7 @@ uid_t pdb_user_rid_to_uid(uint32 u_rid); gid_t pdb_group_rid_to_gid(uint32 g_rid); uint32 pdb_uid_to_user_rid(uid_t uid); uint32 pdb_gid_to_group_rid(gid_t gid); +BOOL pdb_rid_is_well_known(uint32 rid); BOOL pdb_rid_is_user(uint32 rid); /*The following definitions come from password.c */ diff --git a/source3/include/rpc_misc.h b/source3/include/rpc_misc.h index 7406916cce..e8ffcd4a16 100644 --- a/source3/include/rpc_misc.h +++ b/source3/include/rpc_misc.h @@ -62,6 +62,19 @@ #define DOMAIN_ALIAS_RID_REPLICATOR (0x00000228L) +/* + * Masks for mappings between unix uid and gid types and + * NT RIDS. + */ + +/* Take the 3 bottom bits. */ +#define RID_TYPE_MASK 7 +#define RID_MULTIPLIER 8 + +/* The two common types for now. */ +#define USER_RID_TYPE 0 +#define GROUP_RID_TYPE 1 + /* ENUM_HND */ typedef struct enum_hnd_info { |