svn commit: samba r13165 - in trunk/source/nsswitch: .
gd at samba.org
gd at samba.org
Thu Jan 26 14:06:24 GMT 2006
Author: gd
Date: 2006-01-26 14:06:22 +0000 (Thu, 26 Jan 2006)
New Revision: 13165
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13165
Log:
Make sure to return entries from the persistent cache *only* when
lp_winbind_offline_logon is true.
Guenther
Modified:
trunk/source/nsswitch/winbindd_cache.c
Changeset:
Modified: trunk/source/nsswitch/winbindd_cache.c
===================================================================
--- trunk/source/nsswitch/winbindd_cache.c 2006-01-26 13:41:52 UTC (rev 13164)
+++ trunk/source/nsswitch/winbindd_cache.c 2006-01-26 14:06:22 UTC (rev 13165)
@@ -432,7 +432,8 @@
{
/* when the domain is offline and we havent checked in the last 30
* seconds if it has become online again, return the cached entry */
- if (!domain->online && !NT_STATUS_IS_OK(check_negative_conn_cache(domain->name, domain->dcname))) {
+ if (lp_winbind_offline_logon() && !domain->online &&
+ !NT_STATUS_IS_OK(check_negative_conn_cache(domain->name, domain->dcname))) {
DEBUG(10,("centry_expired: Key %s for domain %s valid as domain is offline.\n",
keystr, domain->name ));
return False;
More information about the samba-cvs
mailing list