diff options
author | Jeremy Allison <jra@samba.org> | 2016-10-13 15:01:58 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-10-20 10:45:25 +0200 |
commit | 1e288f558820e232e7e9fcb16bb43e894cb9ee3c (patch) | |
tree | dda1190caf428390f26bbe2f8e7a594b9b0661f2 /source3 | |
parent | 208c13670b690a9f2d81451eb5d23cef30a15312 (diff) | |
download | samba-1e288f558820e232e7e9fcb16bb43e894cb9ee3c.tar.gz |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index cd1b5784c4a..e5410a8bdc6 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -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, |