How to use rewrite.called_station_id IN dynamic clients authorize section

James Wood james.wood at purplewifi.com
Thu Mar 26 10:09:10 CET 2015


Thanks, I will take a look. I am able to do this via SQL purely:

if ("%{sql: select count(*) from nas where REPLACE(REPLACE(community, \"-\", \"\"), \":\", \"\") = REPLACE(REPLACE(SUBSTRING(\"%{raw:Called-Station-Id}\",1,17),\"-\", \"\"), \":\", \"\")}" == 1) {

But it's messy and just masks the issue. Also, when we insert in to radpostauth and radacct etc the MAC format is still wrong.

I am sure there is a way to format the incoming raw Called-Station-Id in dynamic clients?

Thanks

James




More information about the Freeradius-Users mailing list