git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d267325
)
s3:smbd: also fill the memcache with sid<->id mappings in ldapsam_sid_to_id()
author
Michael Adam
<obnox@samba.org>
Fri, 13 Nov 2009 15:16:50 +0000
(16:16 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 13 Nov 2009 15:19:32 +0000
(16:19 +0100)
not only the persistent idmap cache.
Michael
source3/passdb/pdb_ldap.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_ldap.c
b/source3/passdb/pdb_ldap.c
index 7fda72ef211c7031cb4b0ac73e9f3b9dee0ed1ef..cce2cf19d14821b00b39be7f76ee6f19b55eb933 100644
(file)
--- 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;