diff options
author | Jeremy Allison <jra@samba.org> | 1998-06-01 18:50:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-06-01 18:50:27 +0000 |
commit | ffe91d6443f2a3e19977ed97167dd100a42a3e9a (patch) | |
tree | a9db7c7d7258a5a2dfbbc8debbc514d117aad467 /source3/include | |
parent | 3c116d2aa70d68bb4d2c536f03b83d6faf86f53b (diff) | |
download | samba-ffe91d6443f2a3e19977ed97167dd100a42a3e9a.tar.gz |
clientutil.c: Don't core dump if no controlling terminal available for password.
passdb.c:
lib/rpc/include/rpc_misc.h: First cut at automatic uid/gid to rid mapping.
We can change this at a later date to make more bits available if neccessary.
Jeremy.
(This used to be commit 34f40474aba97118e1e80fe6259c686e46dc16b4)
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 3086c6cd242..ff44a5841f5 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 7406916cce9..e8ffcd4a162 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 { |