zone migration using nomadix with free radius
Amardeep Singh
aman.xsaintz at gmail.com
Tue May 3 14:08:15 CEST 2016
Hi,
I am trying to implement zone migration on nomadix. I have made the desired
configuration settings on the nomadix. However when I switch between the
SSIDs it does not redirect me to the AAA page. Although I get authenticated
on nomadix but the redirection is not working.
I have added the authentication qyery on free radius as
(/etc/raddb/sites-enabled/default):-
if ("%{Called-Station-Id}" =~ /^00-50-E8-/) {
update request {
Tmp-String-0 = "%{sql: SELECT radius_group_name from raduserzone where \
site_id='%{NAS-Identifier}' and \
mac_address='%{Calling-Station-Id}' and \
vlan_id='%{NAS-Port}'}"
}
if (&Tmp-String-0 != "") {
update request {
Tmp-String-1 := "%{sql: update radusergroup set \
groupname='%{Tmp-String-0}' \
where username='%{Calling-Station-Id}'}";
}
}
else {
reject
}
}
raduserzone is a custom table :-
mysql> select * from raduserzone ;
+----+---------+-------------------+---------+-------------------+
| id | site_id | mac_address | vlan_id | radius_group_name |
+----+---------+-------------------+---------+-------------------+
Any ideas/suggestions?
Thanks,
Amardeep
More information about the Freeradius-Devel
mailing list