> > But if I move "Realm := csd.sfr" on the first
> > line it doesn't work (ie %{reply:Realm} is empty).
> 
>   Then use %{config:Realm}, as was mentioned in an earlier message.

When moved on the first line the directive Realm = 'csd.sfr' or
Realm := 'csd.sfr'; there is *nothing* in %{whatever:Realm}, I just
tested with nothing, config, reply and proxy-reply !

DEFAULT NAS-IP-Address==10.0.42.65, Called-Station-Id==9100, Realm = 'csd.sfr'
or
DEFAULT NAS-IP-Address==10.0.42.65, Called-Station-Id==9100, Realm := 'csd.sfr'

> > 2/ If I use the :- operator it doesn't work:
> >   detailfile = /%{%{reply:Realm}:-NOREALM}_%Y%m%d.log
>   That's not how it's documented as working.  Go back and read
> 'doc/variables.txt'

Correct, I changed it to /%{reply:Realm:-NOREALM}_%Y%m%d.log and it
works (if Realm is on the second line).

Until now I found no way to declare a variable in the first line and get
it in the detail filename :(

I'm using 20030324 cvs snapshot.

-- 
Christophe.

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

Reply via email to