From 8745c70dfab058d609bc0ec88561ac62e1317e50 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 7 Sep 2011 17:38:42 +0200 Subject: s3:winbind: put winbindd_cache into the state dir, not the cache dir Despite the name, in winbind offline logon mode, this is a database that contains valuable information and should not be cleared. Autobuild-User: Michael Adam Autobuild-Date: Wed Sep 7 21:17:37 CEST 2011 on sn-devel-104 --- source3/winbindd/winbindd_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index ec5f9e74ba..323c0b9014 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -3106,7 +3106,7 @@ bool init_wcache(void) return true; /* when working offline we must not clear the cache on restart */ - wcache->tdb = tdb_open_log(cache_path("winbindd_cache.tdb"), + wcache->tdb = tdb_open_log(state_path("winbindd_cache.tdb"), WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, TDB_INCOMPATIBLE_HASH | (lp_winbind_offline_logon() ? TDB_DEFAULT : (TDB_DEFAULT | TDB_CLEAR_IF_FIRST)), -- cgit