Slightly increase the default idmap cache time
authorVolker Lendecke <vl@samba.org>
Thu, 3 Jul 2008 19:03:58 +0000 (21:03 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 3 Jul 2008 19:19:09 +0000 (21:19 +0200)
(This used to be commit 448836d44d0468a74b962ba3c0b7d51de236374f)

docs-xml/smbdotconf/winbind/idmapcachetime.xml
source3/param/loadparm.c

index 1636cdfa58e743e1062dbd5424921e04eed5f521..55ead617e20c4af0138847c3014d5328da91cfc1 100644 (file)
@@ -9,5 +9,5 @@
        </para>
 </description>
 
        </para>
 </description>
 
-<value type="default">900</value>
+<value type="default">604800 (i.e. 1 week)</value>
 </samba:parameter>
 </samba:parameter>
index b2cbbf1671f3bc724b47f91dffba9ee00bd46a6c..c529948cc9a5dbc98a9af5c0cab2e848c273a796 100644 (file)
@@ -4827,7 +4827,7 @@ static void init_globals(bool first_time_only)
        Globals.bWinbindRefreshTickets = False;
        Globals.bWinbindOfflineLogon = False;
 
        Globals.bWinbindRefreshTickets = False;
        Globals.bWinbindOfflineLogon = False;
 
-       Globals.iIdmapCacheTime = 900; /* 15 minutes by default */
+       Globals.iIdmapCacheTime = 7 * 24 * 3600; /* 1 week by default */
        Globals.iIdmapNegativeCacheTime = 120; /* 2 minutes by default */
 
        Globals.bPassdbExpandExplicit = False;
        Globals.iIdmapNegativeCacheTime = 120; /* 2 minutes by default */
 
        Globals.bPassdbExpandExplicit = False;