summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-12-26 10:17:38 +0100
committerKai Blin <kai@samba.org>2008-12-29 12:52:26 +0100
commit181d4fd31a05e5d9bbe46428a5be01bc2a9d582d (patch)
tree289700e6c7b2173828481a89696fd8801aa01f33 /source4
parentf271469931f83c7b3cf81a9911ff15f761925ad1 (diff)
downloadsamba-181d4fd31a05e5d9bbe46428a5be01bc2a9d582d.tar.gz
samba-181d4fd31a05e5d9bbe46428a5be01bc2a9d582d.tar.bz2
samba-181d4fd31a05e5d9bbe46428a5be01bc2a9d582d.zip
s4 libnet: Add group_name member to struct libnet_GroupInfo's out struct.
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_group.c4
-rw-r--r--source4/libnet/libnet_group.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c
index af5fe4d5d3..9f1060285a 100644
--- a/source4/libnet/libnet_group.c
+++ b/source4/libnet/libnet_group.c
@@ -344,7 +344,9 @@ NTSTATUS libnet_GroupInfo_recv(struct composite_context* c, TALLOC_CTX *mem_ctx,
if (NT_STATUS_IS_OK(status)) {
/* put the results into io structure if everything went fine */
s = talloc_get_type(c->private_data, struct group_info_state);
-
+
+ io->out.group_name = talloc_steal(mem_ctx,
+ s->info.out.info.all.name.string);
io->out.group_sid = talloc_steal(mem_ctx, s->lookup.out.sid);
io->out.num_members = s->info.out.info.all.num_members;
io->out.description = talloc_steal(mem_ctx, s->info.out.info.all.description.string);
diff --git a/source4/libnet/libnet_group.h b/source4/libnet/libnet_group.h
index 3156b1f32f..bdd2c04fec 100644
--- a/source4/libnet/libnet_group.h
+++ b/source4/libnet/libnet_group.h
@@ -33,13 +33,14 @@ struct libnet_CreateGroup {
struct libnet_GroupInfo {
struct {
const char *group_name;
- const char *domain_name;
+ const char *domain_name;
} in;
struct {
+ const char *group_name;
struct dom_sid *group_sid;
uint32_t num_members;
const char *description;
-
+
const char *error_string;
} out;
};