Community discussions

MikroTik App
 
Lupin
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Mon Feb 16, 2009 10:22 pm
Location: Italy

Multiple attributes "WISPr-Location-Name"

Wed Jul 14, 2010 2:07 pm

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
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Multiple attributes "WISPr-Location-Name"

Wed Jul 14, 2010 2:40 pm

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.
 
Lupin
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Mon Feb 16, 2009 10:22 pm
Location: Italy

Re: Multiple attributes "WISPr-Location-Name"

Wed Jul 14, 2010 5:02 pm

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)

:(

Other ideas?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Multiple attributes "WISPr-Location-Name"

Wed Jul 14, 2010 9:25 pm

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
 
Lupin
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Mon Feb 16, 2009 10:22 pm
Location: Italy

Re: Multiple attributes "WISPr-Location-Name"

Thu Jul 15, 2010 12:32 am

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
Yes, in this your case work only on 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
I explain my intentions:

I've three types of hotspot
1-free
2-pay
3-payHotelX


User "free" can connect only on "free" category
User "pay" can connect on "pay" and "free" category
User "payHotelX" can connect on "payHotelX" 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 :)
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Multiple attributes "WISPr-Location-Name"

Thu Jul 15, 2010 12:47 am

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?

Who is online

Users browsing this forum: No registered users and 27 guests