unidentified users and vlan assignment

Phil Mayers p.mayers at imperial.ac.uk
Wed Sep 15 17:29:40 CEST 2010


On 15/09/10 16:13, Fabien COMBERNOUS wrote:
>   We use a sql backend. Just after my sql module (in the authorise
> section) i added the following bloc.
>
>> if (notfound) {
>> update reply {
>> Tunnel-Type := 13
>> Tunnel-Medium-Type := 6
>> Tunnel-Private-Group-ID := 42
>>
>> }
>> }
> When a user is unknown, the sql module returns notfound and this block
> is evaluated as TRUE.

Yes.

> But the return value is not the VLAN as expected :

What do you mean by "return value" here?

> ? Evaluating (notfound) -> TRUE
> ++? if (notfound) -> TRUE
> ++- entering if (notfound) {...}
> +++[reply] returns notfound
> ++- if (notfound) returns notfound
> ? Evaluating (notfound) -> TRUE
> ++? if (notfound) -> TRUE
> ++- entering if (notfound) {...}
> +++[reply] returns notfound
> ++- if (notfound) returns notfound

You've trimmed the debugging output so we can't help you.

Please post the full debugging output.

Have you tested this? With radclient/radtest? It should work, from what 
I can see.



More information about the Freeradius-Users mailing list