[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue
From: |
Lewis Watson |
Subject: |
Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue |
Date: |
Sun, 27 Apr 2003 10:44:56 -0500 |
> Hi Lewis,
> 3) Next, write a function that will create this attribute. Add the
> following to your raddb/rewrite:
>
> integer
> parse_cisco_avpair()
> {
> if (*%[Cisco-AVPair]
> && %[Cisco-AVPair] =~ "nas-tx-speed=\(.*\)")
> %[Custom-NAS-TX-Speed] = \1;
> }
>
> 4) Configure this function to be invoked for each packet. To your
> raddb/hints add:
>
> DEFAULT Rewrite-Function = parse_cisco_avpair NULL
>
> 5) Change the acct_stop_query to make use of the new attribute:
>
> acct_stop_query UPDATE calls \
> SET status=%C{Acct-Status-Type},\
> acct_session_time=%C{Acct-Session-Time},\
> acct_input_octets=%C{Acct-Input-Octets},\
> acct_output_octets=%C{Acct-Output-Octets},\
> connect_term_reason=%C{Acct-Terminate-Cause},\
> connect_speed='%C{Custom-NAS-TX-Speed}' \
> WHERE user_name='%C{User-Name}' \
> AND status = 1 \
> AND acct_session_id='%C{Acct-Session-Id}'
>
> And, finally, do `radctl reload'.
>
> Regards,
> Sergey
Hi Sergey,
Thank you for your help. I edited each file as shown and now am getting
this error when restarting radius.
Apr 27 10:35:13: Main.warning: /usr/local/etc/raddb/rewrite:57: implicit
string to integer coercion
Apr 27 10:35:13: Main.warning: /usr/local/etc/raddb/rewrite:58: missing
return statement
It looks like I need a "return string line" but would appreciate any
assistance you can give me on this...
Thanks again.
Lewis
- [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue, Lewis Watson, 2003/04/26
- Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue, Sergey Poznyakoff, 2003/04/27
- Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue,
Lewis Watson <=
- Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue, Sergey Poznyakoff, 2003/04/27
- Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue, Lewis Watson, 2003/04/27
- Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue, Lewis Watson, 2003/04/27
- Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue, Sergey Poznyakoff, 2003/04/27
- Re: [Help-gnu-radius] Cisco VSA AV-Pair Attribute Issue, Lewis Watson, 2003/04/27