summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-03 21:03:58 +0200
committerVolker Lendecke <vl@samba.org>2008-07-03 21:19:09 +0200
commit5515c0e81c064863c7c56d12b4ae82b8f3455f34 (patch)
tree14f482aa6fb5a1b4fb872db3190b94d5a76024d3
parent9c7e12d9f7c925402163d568539a753ce60571c3 (diff)
downloadsamba-5515c0e81c064863c7c56d12b4ae82b8f3455f34.tar.gz
samba-5515c0e81c064863c7c56d12b4ae82b8f3455f34.tar.bz2
samba-5515c0e81c064863c7c56d12b4ae82b8f3455f34.zip
Slightly increase the default idmap cache time
(This used to be commit 448836d44d0468a74b962ba3c0b7d51de236374f)
-rw-r--r--docs-xml/smbdotconf/winbind/idmapcachetime.xml2
-rw-r--r--source3/param/loadparm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs-xml/smbdotconf/winbind/idmapcachetime.xml b/docs-xml/smbdotconf/winbind/idmapcachetime.xml
index 1636cdfa58..55ead617e2 100644
--- a/docs-xml/smbdotconf/winbind/idmapcachetime.xml
+++ b/docs-xml/smbdotconf/winbind/idmapcachetime.xml
@@ -9,5 +9,5 @@
</para>
</description>
-<value type="default">900</value>
+<value type="default">604800 (i.e. 1 week)</value>
</samba:parameter>
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b2cbbf1671..c529948cc9 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4827,7 +4827,7 @@ static void init_globals(bool first_time_only)
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;