Using rlm_caching: rejects on cached requests

Jeroen Scheerder Jeroen.Scheerder at on2it.net
Thu Apr 26 11:21:12 CEST 2012


On 26 Apr 2012(Q2, W17), at 11:06, Alan DeKok wrote:

> Jeroen Scheerder wrote:
>> On 26 Apr 2012(Q2, W17), at 10:01, Alan DeKok wrote:
>> That's a valid question.  I've followed the way it was done in rlm_caching.c.
> 
>  That should be fixed, then.
> 
>> Actually, that's found in src/main/auth.c as well:
>> 
>>                        auth_type = pairfind(request->config_items,
>>                                             PW_AUTH_TYPE);
>>                        if (auth_type && (auth_type->vp_strvalue[0] != '\0')) {
> 
>  I can't find that code in the current source.  Which version are you
> using?

freeradius-server-2.1.12.

> 
>>> i.e. *What* is the integer value when the string is empty?
>> 
>> I'm printing auth_type->vp_integer as well.  The result:
>> 
>> 	rlm_caching: Found Auth-Type, int value: 1024, string value: ''
> 
>  Weird.
> 
>> Added it.  Interestingly, rejected requests then enter rlm_caching as follows:
> 
>  Probably because it's not intended to cache rejects.
> 
>> I agree.  Yet I always seem to get a vp_integer of 1024 and a vp_str of '', regardless of accepted or rejected auths.
> 
>  Well, current versions of the server don't add that value or string.
> So if it's there, it's because of something in your local configuration.


Sure.  But it's just the most recent tarball extracted, with only the 'testing' user (with cleartype password) added, and caching enabled.


Regards, Jeroen.
-- 
Jeroen Scheerder
ON2IT B.V.
Steenweg 17 B
4181 AJ WAARDENBURG
T: +31 418-653818 | F: +31 418-653716
W: www.on2it.net  | E: Jeroen.Scheerder at on2it.net

Premier Business Partner - IBM  |  Reseller of the Year 2011 - Palo Alto Networks



More information about the Freeradius-Users mailing list