From 1017b22f68e798a080e0738d3beecf008b2284ef Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Sep 2016 11:26:04 -0700 Subject: s3: winbind: Trust name2sid mappings from the PAC. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't refresh sequence number in parent as the mapping comes from a trusted DC. Signed-off-by: Jeremy Allison Reviewed-by: Günther Deschner --- source3/winbindd/winbindd_cache.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source3/winbindd/winbindd_cache.c') diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 2bce12da9a7..3e01ff04022 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -3339,6 +3339,25 @@ bool lookup_cached_name(const char *domain_name, return NT_STATUS_IS_OK(status); } +/* + * Cache a name to sid without checking the sequence number. + * Used when caching from a trusted PAC. + */ + +void cache_name2sid_trusted(struct winbindd_domain *domain, + const char *domain_name, + const char *name, + enum lsa_SidType type, + const struct dom_sid *sid) +{ + wcache_save_name_to_sid(domain, + NT_STATUS_OK, + domain_name, + name, + sid, + type); +} + void cache_name2sid(struct winbindd_domain *domain, const char *domain_name, const char *name, enum lsa_SidType type, const struct dom_sid *sid) -- cgit v1.2.1