summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-09-07 17:38:42 +0200
committerMichael Adam <obnox@samba.org>2011-09-07 21:17:37 +0200
commit8745c70dfab058d609bc0ec88561ac62e1317e50 (patch)
treeeb76dea5a2acc5afa9b15b81295dea74e299b621
parent350d8e56db2dcc7030dc573f56d5d4a32510b757 (diff)
downloadsamba-8745c70dfab058d609bc0ec88561ac62e1317e50.tar.gz
samba-8745c70dfab058d609bc0ec88561ac62e1317e50.tar.bz2
samba-8745c70dfab058d609bc0ec88561ac62e1317e50.zip
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 <obnox@samba.org> Autobuild-Date: Wed Sep 7 21:17:37 CEST 2011 on sn-devel-104
-rw-r--r--source3/winbindd/winbindd_cache.c2
1 files changed, 1 insertions, 1 deletions
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)),