summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_user.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-10-14 08:30:30 +0000
committerTim Potter <tpot@samba.org>2001-10-14 08:30:30 +0000
commit0536ceee2f22fcef71471cf6c87e2a2940d1d622 (patch)
tree465a3ab0d0b0b1fc1c7b6657dd4aaa1464a09858 /source3/nsswitch/winbindd_user.c
parent1bce5c0b62409d1e5d3cdd65225b9730d2607b27 (diff)
downloadsamba-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_user.c')
-rw-r--r--source3/nsswitch/winbindd_user.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/nsswitch/winbindd_user.c b/source3/nsswitch/winbindd_user.c
index fe134c4e66..845c787b2a 100644
--- a/source3/nsswitch/winbindd_user.c
+++ b/source3/nsswitch/winbindd_user.c
@@ -123,7 +123,7 @@ enum winbindd_result winbindd_getpwnam_from_user(struct winbindd_cli_state
/* Check for cached user entry */
- if (winbindd_fetch_user_cache_entry(name_domain, name_user,
+ if (winbindd_fetch_user_cache_entry(domain, name_user,
&state->response.data.pw)) {
return WINBINDD_OK;
}
@@ -167,7 +167,7 @@ enum winbindd_result winbindd_getpwnam_from_user(struct winbindd_cli_state
return WINBINDD_ERROR;
}
- winbindd_store_user_cache_entry(name_domain, name_user,
+ winbindd_store_user_cache_entry(domain, name_user,
&state->response.data.pw);
return WINBINDD_OK;
@@ -207,7 +207,7 @@ enum winbindd_result winbindd_getpwnam_from_uid(struct winbindd_cli_state
/* Check for cached uid entry */
- if (winbindd_fetch_uid_cache_entry(domain->name,
+ if (winbindd_fetch_uid_cache_entry(domain,
state->request.data.uid,
&state->response.data.pw)) {
return WINBINDD_OK;
@@ -257,7 +257,7 @@ enum winbindd_result winbindd_getpwnam_from_uid(struct winbindd_cli_state
return WINBINDD_ERROR;
}
- winbindd_store_uid_cache_entry(domain->name, state->request.data.uid,
+ winbindd_store_uid_cache_entry(domain, state->request.data.uid,
&state->response.data.pw);
return WINBINDD_OK;
@@ -355,7 +355,7 @@ static BOOL get_sam_user_entries(struct getent_state *ent)
#if 0
/* Look in cache for entries, else get them direct */
- if (winbindd_fetch_user_cache(ent->domain->name,
+ if (winbindd_fetch_user_cache(ent->domain,
(struct getpwent_user **)
&ent->sam_entries,
&ent->num_sam_entries)) {
@@ -437,7 +437,7 @@ static BOOL get_sam_user_entries(struct getent_state *ent)
#if 0
/* Fill cache with received entries */
- winbindd_store_user_cache(ent->domain->name, ent->sam_entries,
+ winbindd_store_user_cache(ent->domain, ent->sam_entries,
ent->num_sam_entries);
#endif