How to set the radius attribute to more location names?
Is possible?
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.
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
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 ) and then .. they complicate my life
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!
ADD: Are you willing to have two radius servers? One that handles you paying customers, and one for free users?