summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-27 22:02:05 +0000
committerJeremy Allison <jra@samba.org>2002-02-27 22:02:05 +0000
commit8071fb8c05be5549e7fb424da2b563c0b2025c68 (patch)
tree57750d9722a8f44b6e51bb1e4ce8652fb22dbe45 /source3/rpc_parse
parent2da4d64cfcf289d18d622c67d3250c51e6b88466 (diff)
downloadsamba-8071fb8c05be5549e7fb424da2b563c0b2025c68.tar.gz
samba-8071fb8c05be5549e7fb424da2b563c0b2025c68.tar.bz2
samba-8071fb8c05be5549e7fb424da2b563c0b2025c68.zip
Patch for Domain users not showing up from "Ivan Zhakov" <vunny@mail.ru>.
Jeremy. (This used to be commit 3f9063167f3fc9ae7e7fd753d76ece23c1d97800)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_samr.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index 41a12c6b77..32d107c36c 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -1644,7 +1644,6 @@ NTSTATUS init_sam_dispinfo_3(TALLOC_CTX *ctx, SAM_DISPINFO_3 *sam, uint32 num_en
uint32 len_sam_name, len_sam_desc;
uint32 i;
- DOMAIN_GRP *grp;
ZERO_STRUCTP(sam);
DEBUG(5, ("init_sam_dispinfo_3: num_entries: %d\n", num_entries));
@@ -1662,16 +1661,17 @@ NTSTATUS init_sam_dispinfo_3(TALLOC_CTX *ctx, SAM_DISPINFO_3 *sam, uint32 num_en
ZERO_STRUCTP(sam->str);
for (i = 0; i < num_entries; i++) {
+ DOMAIN_GRP *grp = disp_group_info[i+start_idx].grp;
+
DEBUG(11, ("init_sam_dispinfo_3: entry: %d\n",i));
- grp=disp_group_info[i+start_idx].grp;
- len_sam_name = strlen(grp[i].name);
- len_sam_desc = strlen(grp[i].comment);
+ len_sam_name = strlen(grp->name);
+ len_sam_desc = strlen(grp->comment);
- init_sam_entry3(&sam->sam[i], start_idx + i + 1, len_sam_name, len_sam_desc, grp[i].rid);
+ init_sam_entry3(&sam->sam[i], start_idx + i + 1, len_sam_name, len_sam_desc, grp->rid);
- init_unistr2(&sam->str[i].uni_grp_name, grp[i].name, len_sam_name);
- init_unistr2(&sam->str[i].uni_grp_desc, grp[i].comment, len_sam_desc);
+ init_unistr2(&sam->str[i].uni_grp_name, grp->name, len_sam_name);
+ init_unistr2(&sam->str[i].uni_grp_desc, grp->comment, len_sam_desc);
}
return NT_STATUS_OK;
@@ -1829,7 +1829,6 @@ NTSTATUS init_sam_dispinfo_5(TALLOC_CTX *ctx, SAM_DISPINFO_5 *sam, uint32 num_en
uint32 len_sam_name;
uint32 i;
- DOMAIN_GRP *grp;
ZERO_STRUCTP(sam);
DEBUG(5, ("init_sam_dispinfo_5: num_entries: %d\n", num_entries));
@@ -1847,13 +1846,14 @@ NTSTATUS init_sam_dispinfo_5(TALLOC_CTX *ctx, SAM_DISPINFO_5 *sam, uint32 num_en
ZERO_STRUCTP(sam->str);
for (i = 0; i < num_entries; i++) {
+ DOMAIN_GRP *grp = disp_group_info[i+start_idx].grp;
+
DEBUG(11, ("init_sam_dispinfo_5: entry: %d\n",i));
- grp=disp_group_info[i+start_idx].grp;
- len_sam_name = strlen(grp[i].name);
+ len_sam_name = strlen(grp->name);
init_sam_entry5(&sam->sam[i], start_idx + i + 1, len_sam_name);
- init_string2(&sam->str[i].grp_name, grp[i].name, len_sam_name+1, len_sam_name);
+ init_string2(&sam->str[i].grp_name, grp->name, len_sam_name+1, len_sam_name);
}
return NT_STATUS_OK;