winbind: lookup_usergroups_cached doesn't use the "domain" parameter
[samba.git] / source3 / winbindd / winbindd_ads.c
index fdb6806040eb9d952c02f59f9f7827386e46602b..a4339f1a4ef9277497a0b10504794322cb83d272 100644 (file)
@@ -1013,7 +1013,7 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
        DEBUG(3,("ads: lookup_usergroups\n"));
        *p_num_groups = 0;
 
-       status = lookup_usergroups_cached(domain, mem_ctx, sid, 
+       status = lookup_usergroups_cached(mem_ctx, sid,
                                          p_num_groups, user_sids);
        if (NT_STATUS_IS_OK(status)) {
                return NT_STATUS_OK;