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.