summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-12-06 01:41:28 +0100
committerGünther Deschner <gd@samba.org>2009-01-06 16:02:11 +0100
commit05784d0fa865d630bf85f84f3797a53ed1e1a6db (patch)
treee4df8da8cad7e980a183981b159e4dd27f395668
parent15ec09029937774395ad97d5c7fa44a84b3008b2 (diff)
downloadsamba-05784d0fa865d630bf85f84f3797a53ed1e1a6db.tar.gz
samba-05784d0fa865d630bf85f84f3797a53ed1e1a6db.tar.bz2
samba-05784d0fa865d630bf85f84f3797a53ed1e1a6db.zip
s3-samr: avoid all init_samr_group* functions.
Guenther
-rw-r--r--source3/rpc_server/srv_samr_nt.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 3322c6a136..b06bd58d2d 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -5114,24 +5114,20 @@ NTSTATUS _samr_QueryGroupInfo(pipes_struct *p,
return status;
}
- init_samr_group_info1(&info->all,
- group_name,
- attributes,
- num_members,
- group_description);
+ info->all.name.string = group_name;
+ info->all.attributes = attributes;
+ info->all.num_members = num_members;
+ info->all.description.string = group_description;
break;
}
case 2:
- init_samr_group_info2(&info->name,
- group_name);
+ info->name.string = group_name;
break;
case 3:
- init_samr_group_info3(&info->attributes,
- attributes);
+ info->attributes.attributes = attributes;
break;
case 4:
- init_samr_group_info4(&info->description,
- group_description);
+ info->description.string = group_description;
break;
case 5: {
/*
@@ -5149,11 +5145,10 @@ NTSTATUS _samr_QueryGroupInfo(pipes_struct *p,
return status;
}
*/
- init_samr_group_info5(&info->all2,
- group_name,
- attributes,
- 0, /* num_members - in w2k3 this is always 0 */
- group_description);
+ info->all2.name.string = group_name;
+ info->all2.attributes = attributes;
+ info->all2.num_members = 0; /* num_members - in w2k3 this is always 0 */
+ info->all2.description.string = group_description;
break;
}