diff options
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index e1fbfe3bc2..86e57cb07c 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -2162,7 +2162,14 @@ void wcache_invalidate_samlogon(struct winbindd_domain *domain, NET_USER_INFO_3 *info3) { struct winbind_cache *cache; - + + /* dont clear cached U/SID and UG/SID entries when we want to logon + * offline - gd */ + + if (lp_winbind_offline_logon()) { + return; + } + if (!domain) return; |