freeradius-proxy with Rlm_cache
Dominique Frise
dominique.frise at unil.ch
Thu Feb 21 16:22:25 CET 2013
Hi Phil,
I have now a working config.
"authorize" section :
...
# auth_log
# Caching module will allow to log twice with the same OTP.
# Cached entry will be removed after second login or at
# the end of TTL (value set in modules/cache)
cache
if (ok) {
# entry found in cache; set Auth-Type to Accept.
# force TTL to 0 for removing this entry
update control {
Auth-Type := Accept
Cache-TTL = 0
}
cache # remove entry
noop = return
}
...
Thanks for your help.
Dominique
On 02/20/13 03:05 PM, Phil Mayers wrote:
> On 20/02/13 13:31, Dominique Frise wrote:
>> Hi Phil,
>>
>> Here below a debug output :
>>
>> ==================
>> rad_recv: Access-Request packet from host 127.0.0.1 port 11148, id=74,
>> length=94
>> User-Name = "dfrise"
>> User-Password = "xxxx276988"
>
> Ok, so the PIN is appended to the password. In which case your "key" is
> just "User-Name" and "User-Password".
>
> Anyway - the recipe in my other email should cover what you need. What
> you're doing now - single calls to "cache" - probably won't cover it.
> You will need more logic, as per my example.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list