From 181d4fd31a05e5d9bbe46428a5be01bc2a9d582d Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Fri, 26 Dec 2008 10:17:38 +0100 Subject: s4 libnet: Add group_name member to struct libnet_GroupInfo's out struct. --- source4/libnet/libnet_group.c | 4 +++- source4/libnet/libnet_group.h | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'source4/libnet') diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c index af5fe4d5d37..9f1060285ac 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 3156b1f32f5..bdd2c04feca 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; }; -- cgit