From ee2565bd461ccfb916c5290c883e5ced3af72141 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 13 Nov 2009 16:16:50 +0100 Subject: [PATCH] s3:smbd: also fill the memcache with sid<->id mappings in ldapsam_sid_to_id() not only the persistent idmap cache. Michael --- source3/passdb/pdb_ldap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 7fda72ef211..cce2cf19d14 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -4969,6 +4969,7 @@ static bool ldapsam_sid_to_id(struct pdb_methods *methods, id->gid = strtoul(gid_str, NULL, 10); *type = (enum lsa_SidType)strtoul(value, NULL, 10); + store_gid_sid_cache(sid, id->gid); idmap_cache_set_sid2gid(sid, id->gid); ret = True; goto done; @@ -4986,6 +4987,7 @@ static bool ldapsam_sid_to_id(struct pdb_methods *methods, id->uid = strtoul(value, NULL, 10); *type = SID_NAME_USER; + store_uid_sid_cache(sid, id->uid); idmap_cache_set_sid2uid(sid, id->uid); ret = True; -- 2.11.4.GIT