summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-05-03 11:44:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:52 -0500
commitc74c6f722f29a39ed5677e7e571ad7a1b01a4f0b (patch)
tree4b1638f62874bd4812fda93836f64173600d4d03 /source3/nsswitch/winbindd_cache.c
parentcd7ad0993dda2f03f768096e2d4858788769e7d9 (diff)
downloadsamba-c74c6f722f29a39ed5677e7e571ad7a1b01a4f0b.tar.gz
samba-c74c6f722f29a39ed5677e7e571ad7a1b01a4f0b.tar.bz2
samba-c74c6f722f29a39ed5677e7e571ad7a1b01a4f0b.zip
r22643: Don't clear cached U/SID and UG/SID entries when we want to logon offline.
Guenther (This used to be commit 37f9f466fd05bb06d8539bdb2cb72a730c2af4f4)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c9
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;