Semantics of !~ operator

Gerald Vogt vogt at spamcop.net
Tue Apr 28 09:52:45 CEST 2015


On 28/04/15 09:06, Arran Cudbard-Bell wrote:
>
>>
>> ssid {
>>         if ( Called-Station-Id ) {
>>                 if ( Called-Station-Id =~ /^[-A-Fa-f0-9]+:(.*)$/ ) {
>>                         update {
>>                                 Local-SSID = "%{1}"
>>                         }
>>                 }
>>         }
>> }
>
> A similar policy already exists in policy.d Calling-Station-SSID is already defined.

I found rewrite_called_station_id which does what I need. However, it 
modifies Called-Station-Id and removes the SSID from the attribute. Now 
Called-Station-Id is copied from the outer eap into the inner eap 
tunnel. Called-Station-SSID is not copied, i.e. I don't have the SSID in 
the inner tunnel.

How can modify, which attributes are copied from the outer eap into the 
inner tunnel? Or how do I get the Called-Station-SSID into the inner tunnel?

Thanks,

Gerald



More information about the Freeradius-Users mailing list