diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c index 6883a86d685..65012e0f1c5 100644 --- a/source3/nsswitch/winbindd_util.c +++ b/source3/nsswitch/winbindd_util.c @@ -404,7 +404,7 @@ BOOL winbindd_lookup_usergroups(struct winbindd_domain *domain, /* Query user rids */ - result = cli_samr_query_usergroups(hnd->cli, mem_ctx, &hnd->pol, + result = cli_samr_query_usergroups(hnd->cli, mem_ctx, &user_pol, num_groups, user_groups); done: