summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_user.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-21 09:59:15 +0000
committerJeremy Allison <jra@samba.org>2001-11-21 09:59:15 +0000
commit16ceec46d6e6d908314e12ac0586c49b37a95256 (patch)
tree8ea74cdedbc4762968bb9fde662180dc8477ea3a /source3/nsswitch/winbindd_user.c
parentefa52853f6a79f87f3a4119dfc92a6d6d00934ae (diff)
downloadsamba-16ceec46d6e6d908314e12ac0586c49b37a95256.tar.gz
samba-16ceec46d6e6d908314e12ac0586c49b37a95256.tar.bz2
samba-16ceec46d6e6d908314e12ac0586c49b37a95256.zip
Added transparent +ve caching for lookupname/lookupsid. -ve caching can
be easily added (a one liner) once we know the correct error codes returned by a W2K DC. All other winbindd calls should go through a similar transparent caching layer (and will soon). Jeremy. (This used to be commit b16bb21d371772816a4331f5011c151be0e083d5)
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 8dc3e82f42..85abe9b587 100644
--- a/source3/nsswitch/winbindd_user.c
+++ b/source3/nsswitch/winbindd_user.c
@@ -98,8 +98,8 @@ enum winbindd_result winbindd_getpwnam_from_user(struct winbindd_cli_state
DOM_SID user_sid;
fstring name_domain, name_user, name, gecos_name;
enum SID_NAME_USE name_type;
- struct winbindd_domain *domain;
- TALLOC_CTX *mem_ctx;
+ struct winbindd_domain *domain;
+ TALLOC_CTX *mem_ctx;
DEBUG(3, ("[%5d]: getpwnam %s\n", state->pid,
state->request.data.username));
@@ -115,10 +115,10 @@ enum winbindd_result winbindd_getpwnam_from_user(struct winbindd_cli_state
if (strequal(name_domain, ""))
return WINBINDD_ERROR;
- if ((domain = find_domain_from_name(name_domain)) == NULL) {
- DEBUG(5, ("No such domain: %s\n", name_domain));
- return WINBINDD_ERROR;
- }
+ if ((domain = find_domain_from_name(name_domain)) == NULL) {
+ DEBUG(5, ("No such domain: %s\n", name_domain));
+ return WINBINDD_ERROR;
+ }
/* Check for cached user entry */