Semantics of !~ operator
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Tue Apr 28 10:31:22 CEST 2015
> 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
}
Not sure why it's not copied. Non protocol attributes should be forwarded when proxying to virtual servers. It's only when the request needs to be translated back to a RADIUS packet that they should be stripped.
Feel free to open an issue on the github tracker.
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/7739d402/attachment.sig>
More information about the Freeradius-Users
mailing list