s3:winbind: put winbindd_cache into the state dir, not the cache dir
authorMichael Adam <obnox@samba.org>
Wed, 7 Sep 2011 15:38:42 +0000 (17:38 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 7 Sep 2011 19:17:37 +0000 (21:17 +0200)
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

source3/winbindd/winbindd_cache.c

index ec5f9e74ba23c6ff3581a34157a1fa75b363e5d5..323c0b9014f97d522f688138cadd3b655c30d10c 100644 (file)
@@ -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)),