Issues with building Freeradius on CentOS 6.5: need rlm_cache

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sat Jun 14 21:23:47 CEST 2014


On 14 Jun 2014, at 20:13, Arran Cudbard-Bell <a.cudbardb at freeradius.org> wrote:

> 
> On 14 Jun 2014, at 19:53, Brandon Jozsa <bjozsa at 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 at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140614/f12a3abe/attachment.pgp>


More information about the Freeradius-Users mailing list