From c09049d25b22d843524ba54ceeb69295487b2de6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 24 Feb 2004 18:03:19 +0000 Subject: Add 'net rpc group add'. For this parse_samr.c had to be changed: The group_info4 in set_dom_group_info also has the level in the record itself. This seems not to be an align. Tested with NT4 usrmgr.exe. It can still create a domain group on a samba machine. Volker (This used to be commit 9cadd14aa53d390a2419d7ce4fe48d58cf372279) --- source3/include/mapping.h | 7 +++++++ source3/include/rpc_samr.h | 1 + 2 files changed, 8 insertions(+) (limited to 'source3/include') diff --git a/source3/include/mapping.h b/source3/include/mapping.h index fdaa2b0453..cd213cfc11 100644 --- a/source3/include/mapping.h +++ b/source3/include/mapping.h @@ -29,5 +29,12 @@ typedef struct _GROUP_MAP { enum SID_NAME_USE sid_name_use; fstring nt_name; fstring comment; + + /* Here we store SIDs that we can be sure of to be of type + * SID_NAME_DOM_GRP, so it's a Domain Group which can not be + * represented via /etc/group memberships. */ + + int num_member; + DOM_SID *alias_members; } GROUP_MAP; diff --git a/source3/include/rpc_samr.h b/source3/include/rpc_samr.h index a8ca504c8f..111e62c355 100644 --- a/source3/include/rpc_samr.h +++ b/source3/include/rpc_samr.h @@ -1076,6 +1076,7 @@ typedef struct samr_group_info3 typedef struct samr_group_info4 { + uint16 level; UNIHDR hdr_acct_desc; UNISTR2 uni_acct_desc; -- cgit