Ussing many MAC Address wih one user
Hi everybody!! Im using freeradius in a simple way (freeradius + MySQL). I have some users attached to some groups... it works fine!! The groups have some simple attributes like "Max-All-Session" in radgroupcheck table. Now I need to limit the users to some MAC Address. I mean, I have the User "AAAA" and I need use it only with these MAC Address: 00:23:8B:7F:47:DD 00:23:8B:7F:AA:BB 00:23:8B:7F:CC:EE I'm using the atributte Calling-Station-Id in the radcheck table, like this: AAAA Calling-Station-Id == 00:23:8B:7F:47:DD It works fine, but just for only one MAC address, If I put 2 or more MAC address It doesnt work. What can I do in order to enable some MAC Address attached to users in mysql database? (not only one?) Thanks !! -- * **Andres Gomez*
anyone can help? 2012/8/21 Andres Gomez Ruiz <andres.gomez@urbalink.co>
Hi everybody!!
Im using freeradius in a simple way (freeradius + MySQL). I have some users attached to some groups... it works fine!! The groups have some simple attributes like "Max-All-Session" in radgroupcheck table.
Now I need to limit the users to some MAC Address. I mean, I have the User "AAAA" and I need use it only with these MAC Address: 00:23:8B:7F:47:DD 00:23:8B:7F:AA:BB 00:23:8B:7F:CC:EE
I'm using the atributte Calling-Station-Id in the radcheck table, like this:
AAAA Calling-Station-Id == 00:23:8B:7F:47:DD
It works fine, but just for only one MAC address, If I put 2 or more MAC address It doesnt work.
What can I do in order to enable some MAC Address attached to users in mysql database? (not only one?)
Thanks !!
--
* **Andres Gomez*
Hello, Well, there's probably a better way of doing it, but I'm not familiar with one. The option that comes to my mind is using regular expressions. Try replacing AAAA Calling-Station-Id == 00:23:8B:7F:47:DD with AAAA Calling-Station-Id =~ "(00:23:8B:7F:47:DD|00:23:8B:7F:AA:BB|00:23:8B:7F:CC:EE)" Good luck, Omri.
participants (2)
-
Andres Gomez Ruiz -
Omri Bahumi