summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-04-05 12:14:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:05 -0500
commit3e449693bd5c944f69c5206685a09fb8102bc3a8 (patch)
tree85eb3b5a98f2f99e56a39166a771e6f9a85cba71 /source3/nsswitch
parent74766d5c45c92f92a5cd22c9441f1f6571f1618c (diff)
downloadsamba-3e449693bd5c944f69c5206685a09fb8102bc3a8.tar.gz
samba-3e449693bd5c944f69c5206685a09fb8102bc3a8.tar.bz2
samba-3e449693bd5c944f69c5206685a09fb8102bc3a8.zip
r38: Fix caching of name->sid lookups
Volker (This used to be commit 23c5769545dc8371a679ad4c679578c617f7d85b)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 73918d74f7..43a0f9cf39 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -606,10 +606,11 @@ static void wcache_save_name_to_sid(struct winbindd_domain *domain,
centry = centry_start(domain, status);
if (!centry)
return;
+ centry_put_uint32(centry, type);
centry_put_sid(centry, sid);
fstrcpy(uname, name);
strupper_m(uname);
- centry_end(centry, "NS/%s", sid_to_string(sid_string, sid));
+ centry_end(centry, "NS/%s/%s", domain->name, uname);
DEBUG(10,("wcache_save_name_to_sid: %s -> %s\n", uname, sid_string));
centry_free(centry);
}