Multiple attributes "WISPr-Location-Name"

How to set the radius attribute to more location names?

Is possible? :confused:

for example (does not work):
WISPr-Location-Name=hotspot1,hotspot2

in this case (theoretically) the user can
connect to mikrotik hotspot with location-name=hotspot1
and
connect to the mikrotik hotspot with location-name=hotspot2
and
can’t connect to the mikrotik hotspot with location-name=hotspot3

Haven’t tried this with WISPr-Location-Name, but if you are using FreeRADIUS, you should be able to use the op ‘+=’ instead of ‘:=’. Here is the FreeRADIUS doc on operators.
http://wiki.freeradius.org/Operators
Let me know if it works for you. I can’t test it here right now.

I try with
WISPr-Location-Name := hotspot1
WISPr-Location-Name += hotspot2
doesn’t work (error message is “Radius is not responding”)

try also
WISPr-Location-Name == hotspot1
WISPr-Location-Name += hotspot2
work only on hotspot1 (then doesn’t work)

try also
WISPr-Location-Name += hotspot1
WISPr-Location-Name += hotspot2
always work, also on hotspot3 (then doesn’t work)

:frowning:

Other ideas?

I haven’t tried this ‘+=’ op for quite a while, so I am a bit rusty. Did you try this combination?

WISPr-Location-Name += hotspot1
WISPr-Location-Name == hotspot2

ADD: I don’t know what your goal is, but can you assign the same ‘radius-location-name’ to hotspot1 and hotspot2, and a different one for hotspot3? That is what I am using now.

In hotspot1 and hotspot2:
/ip hotspot profile
set X radius-location-name=HotelA

In hotspot3:
/ip hotspot profile
set X radius-location-name=HotelB

Then use HotelA or HotelB for the WISPr-Location-Name

Yes, in this your case work only on hotspot2

I explain my intentions:

I’ve three types of hotspot
1-free
2-pay
3-payHotel_X_

User “free” can connect only on “free” category
User “pay” can connect on “pay” and “free” category
User “payHotel_X_” can connect on “payHotel_X_” and “free” category

where
X=A or B or C

for example user registered on “payHotelA” can’t connect on “pay” or “payHotelB” or “payHotelC”. Only on “free” and “payHotelA”.
This because some hotel want that clients connect only on their Hotspot and not on then other hotel’s hotspot (they are in competition :frowning: ) and then .. they complicate my life :slight_smile:

I understand about competition. That is why I know about ‘radius-location-name’. But I have no free users. That would really complicate things for me! I am a mercenary, not a missionary! :wink:

ADD: Are you willing to have two radius servers? One that handles you paying customers, and one for free users?