Turtiainen Tero" <[EMAIL PROTECTED]> wrote:
> Which part of that entry does not work?

  NAS-Port is NOT a configuration item.

  The problem has nothing to do with rlm_expr.  You CANNOT add a
RADIUS attribute to a request from the 'users' file, which is what
you were trying to do.

> I was expecting expr to work also on check items. I just haven't
> managed to get it working.

  Try:

DEFAULT NAS-Port == `%{rlm_expr: 1 + 2}`
        Reply-Message = "Nas port of 3",
        Fall-Through = 1

  Send it packets containin NAS-Port of 1, 2, 3, 4, ... and see what
happens.

> I don't get it. At the top you seem to imply that rlm_expr can be
> used with config items but now you are saying that it doesn't work
> that way. I am obviously confused and missing something obvious.

  As I said before, rlm_expr works, but your attempt to *set* the
value of NAS-Port is wrong.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to