multiply Cisco-AVPair request attribute process by regular expression
Mehdi Ravanbakhsh
babakco at gmail.com
Wed May 8 08:13:04 CEST 2013
Dear Phil Mayers
thanks for your reply
i am finally do this in my PostgreSQL function before importing to database
.
Best regards.
On Mon, May 6, 2013 at 6:07 PM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
> On 04/28/2013 09:14 PM, Mehdi Ravanbakhsh wrote:
>
> i have tow Cisco-AVPair attribute in request and i need to process one
>> of them that being started by 'circuit-id-tag=' so i use this :
>>
>>
>>
>> if (Cisco-AVpair =~ /^circuit-id-tag=(.*)$/) {
>>
>> update request {
>> Connect-Info := "%{1}"
>> }
>> }
>>
>>
>> but it is not working !
>>
>
> This is a limitation (or bug, depending on how you define it) of the 2.x
> code. The code basically string-ifys the first instance of the attribute
> when doing a regexp.
>
> This should be fixed in master - see:
>
> https://github.com/FreeRADIUS/**freeradius-server/commit/**
> 5a89c9463390987c54686425493116**7e46fb64c8#src/main/valuepair.**c<https://github.com/FreeRADIUS/freeradius-server/commit/5a89c9463390987c546864254931167e46fb64c8#src/main/valuepair.c>
>
> ...for the fix. We run a local version which has this backported.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/**
> list/users.html <http://www.freeradius.org/list/users.html>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130508/e784ab27/attachment.html>
More information about the Freeradius-Users
mailing list