summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-04-25 08:24:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:29 -0500
commit4e602207e1e599452102d6a06036fb6b49cf0a45 (patch)
tree73d1ad2c37bb4d0e5d7c015eac95c11a333a3e2d
parenta1d47f3e999d2a13d77217239c12735a3ef74e29 (diff)
downloadsamba-4e602207e1e599452102d6a06036fb6b49cf0a45.tar.gz
samba-4e602207e1e599452102d6a06036fb6b49cf0a45.tar.bz2
samba-4e602207e1e599452102d6a06036fb6b49cf0a45.zip
r15228: Fix -n winbind option which has become meaningless with the persistent
cache. Guenther (This used to be commit e85558f4a457609f3661446dad8134e80f10bbe6)
-rw-r--r--source3/nsswitch/winbindd_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 76e49ee96a..bf76c7f251 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -524,6 +524,12 @@ static struct cache_entry *wcache_fetch(struct winbind_cache *cache,
char *kstr;
struct cache_entry *centry;
+ extern BOOL opt_nocache;
+
+ if (opt_nocache) {
+ return NULL;
+ }
+
refresh_sequence_number(domain, False);
va_start(ap, format);