1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s3: winbind: Ensure we store name2sid with the correct cache sequence number.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11259

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
(cherry picked from commit 9f6fe5e2c54870abfff48c8a9d96e21bfec2425f)
This commit is contained in:
Jeremy Allison 2016-10-13 15:01:58 -07:00 committed by Stefan Metzmacher
parent 47ab4a0459
commit 257644f688

View File

@ -3341,6 +3341,12 @@ void cache_name2sid_trusted(struct winbindd_domain *domain,
enum lsa_SidType type,
const struct dom_sid *sid)
{
/*
* Ensure we store the mapping with the
* existing sequence number from the cache.
*/
get_cache(domain);
(void)fetch_cache_seqnum(domain, time(NULL));
wcache_save_name_to_sid(domain,
NT_STATUS_OK,
domain_name,