Semantics of !~ operator
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Tue Apr 28 11:09:20 CEST 2015
> On 28 Apr 2015, at 10:01, Gerald Vogt <vogt at spamcop.net> wrote:
>
>
>
> On 28/04/15 10:31, Arran Cudbard-Bell wrote:
>>
>>> On 28 Apr 2015, at 08:52, Gerald Vogt <vogt at spamcop.net> wrote:
>>>
>>> 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?
>>
>> update request {
>> Called-Station-SSID := &outer.Called-Station-SSID
>> }
>
> I tried that but it doesn't work.
>
> I call rewrite_called_station_id after suffix in the authorize section of the default server. I can see it sets Called-Station-SSID correctly.
Mind posting all the debug output? Unless it's super secret...
Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team
FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20150428/df94230c/attachment.sig>
More information about the Freeradius-Users
mailing list