unidentified users and vlan assignment

Fabien COMBERNOUS fcombernous at kezia.com
Wed Sep 15 17:13:20 CEST 2010


  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.
But the return value is not the VLAN as expected :
? 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



Regards,

-- 
*Fabien COMBERNOUS*
/unix system engineer/
www.kezia.com <http://www.kezia.com/>
*Tel: +33 (0) 467 992 986*
Kezia Group
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100915/f3d08180/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 19589 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20100915/f3d08180/attachment.jpg>


More information about the Freeradius-Users mailing list