diff options
author | Tim Potter <tpot@samba.org> | 2001-10-14 08:30:30 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-10-14 08:30:30 +0000 |
commit | 0536ceee2f22fcef71471cf6c87e2a2940d1d622 (patch) | |
tree | 465a3ab0d0b0b1fc1c7b6657dd4aaa1464a09858 /source3/nsswitch/winbindd_group.c | |
parent | 1bce5c0b62409d1e5d3cdd65225b9730d2607b27 (diff) | |
download | samba-0536ceee2f22fcef71471cf6c87e2a2940d1d622.tar.gz samba-0536ceee2f22fcef71471cf6c87e2a2940d1d622.tar.bz2 samba-0536ceee2f22fcef71471cf6c87e2a2940d1d622.zip |
Pass domain structure around in cache code rather than the domain name.
(This used to be commit c6338d7eaeb31db2666603fcdd9179e61891a1c9)
Diffstat (limited to 'source3/nsswitch/winbindd_group.c')
-rw-r--r-- | source3/nsswitch/winbindd_group.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 |