Tags:
create new tag
view all tags

Question

For the LDAP Guru:

How can we manually configure--at the code level--the LdapContrib plugin to never build its own cache?

Our LdapContrib installation continues to build its cache, daily (the default), despite our setting of '0' for Maximum Cache Age (in the configuration panel). We have to wait 25 minutes each morning, after initial attempt to access the TWiki, for the plugin to pull over 100K users from the LDAP.

We have a cron job that builds this cache during off-hours, which is what we would want it to do; it runs fine. So all we want now is to completely disable the plugin from running its own cache.

This wasn't an issue when we were using TWiki v4.1.2.

Any help would be greatly appreciated.

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: LdapContrib, etc.
Server OS: Red Hat Enterprise Linux 4.0
Web server: Apache 3
Perl version: 5.0XXX
Client OS: MS Windows XP
Web Browser: IE
Categories: Authentication, Plugins

-- ShivaGoudarzi - 08 Feb 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Looking into it.

100k, is this the size of the cache.db file? 100k net data is not much. There's no reason that downloading this amount of data should take 25 minutes. My test engine generates an LDAP cache of 2.8M containing roughly 10.000 keys within 16 seconds (both, TWiki and LDAP on the same machine, legacy hardware).

-- MichaelDaum - 14 Feb 2008

I can confirm this bug. Filed as Bugs:Item5365, also reported at SetMaxCacheAgeToInfinite. Will be fixed in next release.

-- MichaelDaum - 14 Feb 2008

Fixed in latest release 2.99.4

-- MichaelDaum - 14 Feb 2008

Thank you; we have installed the release, and will test and report results.

FYI- About 100K question: We have over 100K records/users to pull from OID, which creates delay in cache refresh.

-- ShivaGoudarzi - 15 Feb 2008

Okay, that's 10x more records than my regular testset has got. Should be about 3 minutes to download them, roughly.

-- MichaelDaum - 18 Feb 2008

Patch seems to work; thanks!

-- ShivaGoudarzi - 19 Feb 2008

We installed the patch, yet after a few days, the cache started building itself again! We still have the Max Cache Age at 0.

-- ShivaGoudarzi - 20 Feb 2008

Change status to:
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2008-02-20 - ShivaGoudarzi
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.