mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:smbd: also fill the memcache with sid<->id mappings in ldapsam_sid_to_id()
not only the persistent idmap cache. Michael
This commit is contained in:
parent
d2673253e3
commit
1e3c4b381a
@ -4969,6 +4969,7 @@ static bool ldapsam_sid_to_id(struct pdb_methods *methods,
|
|||||||
|
|
||||||
id->gid = strtoul(gid_str, NULL, 10);
|
id->gid = strtoul(gid_str, NULL, 10);
|
||||||
*type = (enum lsa_SidType)strtoul(value, NULL, 10);
|
*type = (enum lsa_SidType)strtoul(value, NULL, 10);
|
||||||
|
store_gid_sid_cache(sid, id->gid);
|
||||||
idmap_cache_set_sid2gid(sid, id->gid);
|
idmap_cache_set_sid2gid(sid, id->gid);
|
||||||
ret = True;
|
ret = True;
|
||||||
goto done;
|
goto done;
|
||||||
@ -4986,6 +4987,7 @@ static bool ldapsam_sid_to_id(struct pdb_methods *methods,
|
|||||||
|
|
||||||
id->uid = strtoul(value, NULL, 10);
|
id->uid = strtoul(value, NULL, 10);
|
||||||
*type = SID_NAME_USER;
|
*type = SID_NAME_USER;
|
||||||
|
store_uid_sid_cache(sid, id->uid);
|
||||||
idmap_cache_set_sid2uid(sid, id->uid);
|
idmap_cache_set_sid2uid(sid, id->uid);
|
||||||
|
|
||||||
ret = True;
|
ret = True;
|
||||||
|
Loading…
Reference in New Issue
Block a user