diff options
author | Michael Adam <obnox@samba.org> | 2009-06-26 14:09:10 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-08-11 15:43:48 +0200 |
commit | 7aea93c3d1060f277aab87e85fb3066b4f666109 (patch) | |
tree | 23904e83f3e4548b69f9953b9fd61e4958ab6e91 | |
parent | c34798994b8660586ff6447ba66b79a20580591c (diff) | |
download | samba-7aea93c3d1060f277aab87e85fb3066b4f666109.tar.gz samba-7aea93c3d1060f277aab87e85fb3066b4f666109.tar.xz samba-7aea93c3d1060f277aab87e85fb3066b4f666109.zip |
s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().
With the previous code, the cache can never have been hit at all.
Michael
(cherry picked from commit 12277e145f4dcc589e84e4a90b2497728d2317b6)
-rw-r--r-- | source/passdb/lookup_sid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/passdb/lookup_sid.c b/source/passdb/lookup_sid.c index 1971caeab86..3cd7d024f42 100644 --- a/source/passdb/lookup_sid.c +++ b/source/passdb/lookup_sid.c @@ -1085,7 +1085,7 @@ static bool fetch_gid_from_cache(gid_t *pgid, const DOM_SID *psid) { DATA_BLOB cache_value; - if (!memcache_lookup(NULL, SID_UID_CACHE, + if (!memcache_lookup(NULL, SID_GID_CACHE, data_blob_const(psid, ndr_size_dom_sid(psid, 0)), &cache_value)) { return false; |