svn commit: samba r22643 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_25/source/nsswitch

gd at samba.org gd at samba.org
Thu May 3 11:44:19 GMT 2007


Author: gd
Date: 2007-05-03 11:44:18 +0000 (Thu, 03 May 2007)
New Revision: 22643

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22643

Log:
Don't clear cached U/SID and UG/SID entries when we want to logon offline.

Guenther

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
   branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c	2007-05-02 22:05:48 UTC (rev 22642)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c	2007-05-03 11:44:18 UTC (rev 22643)
@@ -2162,7 +2162,14 @@
 				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;
 

Modified: branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c	2007-05-02 22:05:48 UTC (rev 22642)
+++ branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c	2007-05-03 11:44:18 UTC (rev 22643)
@@ -2140,7 +2140,14 @@
 				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;
 



More information about the samba-cvs mailing list