From 0536ceee2f22fcef71471cf6c87e2a2940d1d622 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 14 Oct 2001 08:30:30 +0000 Subject: Pass domain structure around in cache code rather than the domain name. (This used to be commit c6338d7eaeb31db2666603fcdd9179e61891a1c9) --- source3/nsswitch/winbindd_group.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/nsswitch/winbindd_group.c') diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index dd3e7a9578..893302716f 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -223,7 +223,7 @@ enum winbindd_result winbindd_getgrnam_from_group(struct winbindd_cli_state /* Check for cached group entry */ - if (winbindd_fetch_group_cache_entry(name_domain, name_group, + if (winbindd_fetch_group_cache_entry(domain, name_group, &state->response.data.gr, &state->response.extra_data, &extra_data_len)) { @@ -272,7 +272,7 @@ enum winbindd_result winbindd_getgrnam_from_group(struct winbindd_cli_state /* Update cached group info */ - winbindd_store_group_cache_entry(name_domain, name_group, + winbindd_store_group_cache_entry(domain, name_group, &state->response.data.gr, state->response.extra_data, gr_mem_len); @@ -313,7 +313,7 @@ enum winbindd_result winbindd_getgrnam_from_gid(struct winbindd_cli_state /* Try a cached entry */ - if (winbindd_fetch_gid_cache_entry(domain->name, + if (winbindd_fetch_gid_cache_entry(domain, state->request.data.gid, &state->response.data.gr, &state->response.extra_data, @@ -361,7 +361,7 @@ enum winbindd_result winbindd_getgrnam_from_gid(struct winbindd_cli_state /* Update cached group info */ - winbindd_store_gid_cache_entry(domain->name, state->request.data.gid, + winbindd_store_gid_cache_entry(domain, state->request.data.gid, &state->response.data.gr, state->response.extra_data, gr_mem_len); @@ -451,7 +451,7 @@ static BOOL get_sam_group_entries(struct getent_state *ent) return False; #if 0 - if (winbindd_fetch_group_cache(ent->domain->name, + if (winbindd_fetch_group_cache(ent->domain, &ent->sam_entries, &ent->num_sam_entries)) return True; @@ -515,7 +515,7 @@ static BOOL get_sam_group_entries(struct getent_state *ent) #if 0 /* Fill cache with received entries */ - winbindd_store_group_cache(ent->domain->name, ent->sam_entries, + winbindd_store_group_cache(ent->domain, ent->sam_entries, ent->num_sam_entries); #endif -- cgit