From bb6e2059ee0b07d15ef3f924a137321d5fd6aa0f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 1 May 2005 08:05:17 +0000 Subject: r6544: Use common structures between SAMR, NETLGON and the Krb5 PAC. Fill out the group list for the SamLogon reply, so clients get the supplementary groups. Andrew Bartlett (This used to be commit d9c31e60a72c345e3a23a7eb742906bcfc18721c) --- source4/auth/auth_util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/auth/auth_util.c') diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c index 791d12fae6..ebd0b74227 100644 --- a/source4/auth/auth_util.c +++ b/source4/auth/auth_util.c @@ -338,16 +338,16 @@ NTSTATUS make_server_info_netlogon_validation(TALLOC_CTX *mem_ctx, server_info->primary_group_sid = dom_sid_add_rid(server_info, base->domain_sid, base->primary_gid); NT_STATUS_HAVE_NO_MEMORY(server_info->primary_group_sid); - server_info->n_domain_groups = base->group_count; - if (base->group_count) { - server_info->domain_groups = talloc_array(server_info, struct dom_sid*, base->group_count); + server_info->n_domain_groups = base->groups.count; + if (base->groups.count) { + server_info->domain_groups = talloc_array(server_info, struct dom_sid*, base->groups.count); NT_STATUS_HAVE_NO_MEMORY(server_info->domain_groups); } else { server_info->domain_groups = NULL; } - for (i = 0; i < base->group_count; i++) { - server_info->domain_groups[i] = dom_sid_add_rid(server_info, base->domain_sid, base->groupids[i].rid); + for (i = 0; i < base->groups.count; i++) { + server_info->domain_groups[i] = dom_sid_add_rid(server_info, base->domain_sid, base->groups.rids[i].rid); NT_STATUS_HAVE_NO_MEMORY(server_info->domain_groups[i]); } -- cgit