summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-11-13 16:16:50 +0100
committerMichael Adam <obnox@samba.org>2009-11-13 16:19:32 +0100
commit1e3c4b381a9e77906e5ac12f3406ffc72fd4c14a (patch)
treeede7e6e854509f4a7e0b862e03c8c2e3e5bc82cb /source3
parentd2673253e3f3fead7b467b4e359482a4e8875fc9 (diff)
downloadsamba-1e3c4b381a9e77906e5ac12f3406ffc72fd4c14a.tar.gz
samba-1e3c4b381a9e77906e5ac12f3406ffc72fd4c14a.tar.bz2
samba-1e3c4b381a9e77906e5ac12f3406ffc72fd4c14a.zip
s3:smbd: also fill the memcache with sid<->id mappings in ldapsam_sid_to_id()
not only the persistent idmap cache. Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 7fda72ef21..cce2cf19d1 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;