On 14 Jun 2014, at 20:13, Arran Cudbard-Bell <a.cudbardb@freeradius.org> wrote:
On 14 Jun 2014, at 19:53, Brandon Jozsa <bjozsa@gmail.com> wrote:
Ok, so now that I have this working...rlm_cache is loading just fine, but I think I may be making an error (based on what I want to achieve anyway). I've taken information from the article http://wiki.freeradius.org/modules/Rlm_cache#Two-call-caching, and i see the cache working, but is it in the wrong place?
Yes. The second call should go in Post-Proxy.
authorize { sql if (notfound) { update control { Cache-Status-Only = 'yes' } cache update control { Cache-Status-Only !* ANY } # Not found - Proxy request if (!notfound) { update control { Proxy-To-Realm := <realm> } } # Found - Merge proxy response else { cache } } } post-proxy { cache } Or 3rd call... v3.0.4 is simpler. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS Development Team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2