ldap - How to configure OpenLDAP Proxy/Cache to cache all queries -


OK, this is an open lidap innovation that has been tolerated with me. I am unable to get the answer directly on the webinet, so we will go here:

Note : The final goal should be an OpenLidap server, which is set as a proxy To get all the results in Master LDAP for a "single" query for the cache (if you are familiar with Net Directory Services, the app is simply calling FindAll () on LDAP.)

I am at the place where the proxy Dash is showing similar results for Master (i.e., it is proxying questions), although it does not seem like caching. I say that due to 2 reasons:

  • If I update for an entry in Master LDAP, then I immediately see the updated value in Proxy (using an LDAP browser Which indicates proxy URL), even before TTL expires.
  • If I close Master LDAP and do a query for the proxy, then I get a connection exception. If I'm not mistaken, then I should get cached results instead (once again, TTL has not expired).

Here's the OpenLDAP config file that I'm using for proxy / cache (windows, at OpenLedપી v.2.4.23):


< P> dd / ldap

yuri "ldap: // MyPC"

suffix "DC = local"

rootdn "dc = local"

< P> overlay pcache

proxycatch BDB 1000 3 250 432000

directory ./cache

Index ObjectExide eq

Index CNE, sub

P>

Note:

  • I can use this as part of proxysetset Entries in Revolving LDAP "I'm involved all" characteristics. I understand that a desired query is required for cached / servicing since I want to cache FindAll () I think this is the way to do this.
  • Stability check interval is set to 5 days (432000 seconds) I want to be able to serve cached queries, whenever the master server has gone down for that long . Also keep in mind that TTL has been set to 10 minutes (600 seconds) - this is because I want to refresh the cash queries at least every 10 minutes (if the master server is up).

OK, on ​​my queries :

  1. Will OpenLDAP be able to quickly configure all queries to cache Is there a way? To specify all the attributes in Proxyatset?
  2. When I kill Master LDAP and I do a query for proxy within TTL, why am I getting a connection error? Are not my queries being cached? If so, what is missing in the config file to enable caching?


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -