diff options
author | Michael Adam <obnox@samba.org> | 2009-06-26 14:09:10 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-06-26 14:15:44 +0200 |
commit | a4bc5bfa95be242fe1c8e0cd520a8f1e3d2a67f5 (patch) | |
tree | 8ef5ca343872c0a8dfbccdb050d6f25bd47d1fc7 /source3/passdb | |
parent | 2579afc89710565bea0b16aa894b61fbb7776f26 (diff) | |
download | samba-a4bc5bfa95be242fe1c8e0cd520a8f1e3d2a67f5.tar.gz samba-a4bc5bfa95be242fe1c8e0cd520a8f1e3d2a67f5.tar.bz2 samba-a4bc5bfa95be242fe1c8e0cd520a8f1e3d2a67f5.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
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/lookup_sid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index 3a03cfe081..112225d504 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/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, NULL, 0)), &cache_value)) { return false; |