diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-04-15 09:07:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:15 -0500 |
commit | 4c34b09a19282295704b0d36dfd570edaf1a8e11 (patch) | |
tree | d4fe124a87c50e1f3da4f8bf2d15da48c1381be2 /source3/rpc_server/srv_samr_nt.c | |
parent | f480e29a683f25f4c05addd367f116a7854b4678 (diff) | |
download | samba-4c34b09a19282295704b0d36dfd570edaf1a8e11.tar.gz samba-4c34b09a19282295704b0d36dfd570edaf1a8e11.tar.bz2 samba-4c34b09a19282295704b0d36dfd570edaf1a8e11.zip |
r229: Don't list domain groups from BUILTIN.
Volker
(This used to be commit b4429d97439e511d40901f809e3923945cb52221)
Diffstat (limited to 'source3/rpc_server/srv_samr_nt.c')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index a8402ab801..eca0913c1c 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -302,6 +302,13 @@ static NTSTATUS load_group_domain_entries(struct samr_info *info, DOM_SID *sid) return NT_STATUS_OK; } + if (sid_equal(sid, &global_sid_Builtin)) { + /* No domain groups for now in the BUILTIN domain */ + info->disp_info.num_group_account=0; + info->disp_info.disp_group_info=NULL; + info->disp_info.group_dbloaded=True; + return NT_STATUS_OK; + } become_root(); ret = pdb_enum_group_mapping(SID_NAME_DOM_GRP, &map, (int *)&group_entries, ENUM_ONLY_MAPPED); |