git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74766d5
)
r38: Fix caching of name->sid lookups
author
Volker Lendecke
<vlendec@samba.org>
Mon, 5 Apr 2004 12:14:31 +0000
(12:14 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:51:05 +0000
(10:51 -0500)
Volker
(This used to be commit
23c5769545dc8371a679ad4c679578c617f7d85b
)
source3/nsswitch/winbindd_cache.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/winbindd_cache.c
b/source3/nsswitch/winbindd_cache.c
index 73918d74f7db99ef61f1a40a8ebb122dbaeb10a8..43a0f9cf395eb4c7af5c7f21f7d7ed17a211f7a7 100644
(file)
--- 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);
}