diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-23 21:45:16 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-23 21:45:16 +0000 |
commit | 1e96e14e790e733bbd182a828b0db8727fead2a2 (patch) | |
tree | 9763543617375572974f6e5d9c6bb94a65a04709 /source | |
parent | 222d686a6cdbc2947e7201636ae80ef4c650a65d (diff) | |
download | samba-1e96e14e790e733bbd182a828b0db8727fead2a2.tar.gz samba-1e96e14e790e733bbd182a828b0db8727fead2a2.tar.xz samba-1e96e14e790e733bbd182a828b0db8727fead2a2.zip |
added domain and local group structures. names may have to be 256 chars
long not 128 (fstring) length.
Diffstat (limited to 'source')
-rw-r--r-- | source/include/rpc_misc.h | 16 | ||||
-rw-r--r-- | source/include/smb.h | 60 |
2 files changed, 60 insertions, 16 deletions
diff --git a/source/include/rpc_misc.h b/source/include/rpc_misc.h index c03471ebfce..50daf27dfc7 100644 --- a/source/include/rpc_misc.h +++ b/source/include/rpc_misc.h @@ -79,22 +79,6 @@ typedef struct lookup_level_info } LOOKUP_LEVEL; -#define MAXSUBAUTHS 15 /* max sub authorities in a SID */ - -/* DOM_SID - security id */ -typedef struct sid_info -{ - uint8 sid_rev_num; /* SID revision number */ - uint8 num_auths; /* number of sub-authorities */ - uint8 id_auth[6]; /* Identifier Authority */ - /* - * Note that the values in these uint32's are in *native* byteorder, - * not neccessarily little-endian...... JRA. - */ - uint32 sub_auths[MAXSUBAUTHS]; /* pointer to sub-authorities. */ - -} DOM_SID; - /* DOM_SID2 - security id */ typedef struct sid_info_2 { diff --git a/source/include/smb.h b/source/include/smb.h index 2e27fa195f7..a6566fb3643 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -431,6 +431,66 @@ struct sam_disp_info char *full_name; /* user's full name string */ }; +#define MAXSUBAUTHS 15 /* max sub authorities in a SID */ + +/* DOM_SID - security id */ +typedef struct sid_info +{ + uint8 sid_rev_num; /* SID revision number */ + uint8 num_auths; /* number of sub-authorities */ + uint8 id_auth[6]; /* Identifier Authority */ + /* + * Note that the values in these uint32's are in *native* byteorder, + * not neccessarily little-endian...... JRA. + */ + uint32 sub_auths[MAXSUBAUTHS]; /* pointer to sub-authorities. */ + +} DOM_SID; + + +/*** query a local group, get a list of these: shows who is in that group ***/ + +/* local group member info */ +typedef struct local_grp_member_info +{ + DOM_SID sid ; /* matches with name */ + uint8 sid_use; /* usr=1 grp=2 dom=3 alias=4 wkng=5 del=6 inv=7 unk=8 */ + fstring name ; /* matches with sid: must be of the form "DOMAIN\account" */ + +} LOCAL_GRP_MEMBER; + +/* enumerate these to get list of local groups */ + +/* local group info */ +typedef struct local_grp_info +{ + fstring name; + fstring comment; + +} LOCAL_GRP; + +/*** enumerate these to get list of domain groups ***/ + +/* domain group member info */ +typedef struct domain_grp_info +{ + fstring name; + fstring comment; + uint32 rid; /* group rid */ + uint8 attr; /* attributes forced to be set to 0x7: SE_GROUP_xxx */ + +} DOMAIN_GRP; + +/*** query a domain group, get a list of these: shows who is in that group ***/ + +/* domain group info */ +typedef struct domain_grp_member_info +{ + fstring name; + uint8 attr; /* attributes forced to be set to 0x7: SE_GROUP_xxx */ + +} DOMAIN_GRP_MEMBER; + /* DOM_CHAL - challenge info */ typedef struct chal_info { |