Can i return the same VALUE_PAIR in the access-accept packet as the access-request 
packet?
For example, "Call-Refrence = 2" in access-request packet, and then return 
"Call-Refrence = 2" in the access-accept packet.  I am using the rlm_expr, but failed.

(freeradius0.9.2 + rlm_pap + rlm_expr + rlm_sql_mysql + rlm_sqlcounter)

1.
[EMAIL PROTECTED] main]# ./radauth ylei ylei
Sending Access-Request of id 239 to 10.1.16.250:1812
        User-Name = "ylei"
        User-Password = "ylei"
        NAS-IP-Address = "127.0.0.1"
        Call-Refrence = 2               --> our own Attribute
        NAS-Port = 6
rad_recv: Access-Accept packet from host 10.1.16.250:1812 id=239,length=62
        Reply-Message = "2"
        Call-Refrence-Ack = "%{expr: %{Call-Refrence}}"         --> our own Attribute
        Session-Timeout = 6000
        

2. dictionary file

VENDOR  SZHTP   1111
ATTRIBUTE       Call-Refrence           0       Integer         VENDOR
ATTRIBUTE       Call-Refrence-Ack       1       String          VENDOR          // 
String: same as Reply-Message
......


refering to /usr/local/share/freeradius/dictionary:
....
ATTRIBUTE       Reply-Message   18      String  
....


3. radreply table:
id              UserName        Attribute               op      Value
1               ylei            Reply-Message           :=      %{expr: 
%{Call-Refrence}}
2               ylei            Call-Refrence-Ack       :=      %{expr: 
%{Call-Refrence}}       
3               ylei            Call-Refrence           :=      %{expr: 
%{Call-Refrence}}

Can anyone tell me why i cann't get what i want?

PS:
        WHERE is the function expr_xlat() in rlm_expr.c called?? I will debug for the 
above if i konw.



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

Reply via email to