Accept a number of MAC address per login

ShR3K alexandre_rubert at hotmail.com
Fri Aug 5 12:42:14 CEST 2011


I solved the problem : 
 /etc/freeradius/sites-enabled/default

authorize{
...
if("%sql:SELECT COUNT(DISTINCT CallingStationId) FROM radacct WHERE
UserName='%{User-Name}' AND CallingStationId !=
'%{Calling-Station-Id}'}"<"%{sql:SELECT Value FROM radcheck WHERE Attribute
= 'Max-User-Machine' AND UserName='%{User-Name}'}"){
ok
update control{
Auth-Type := Accept
}
else{
update reply{
Reply-Message := "Too much MAC for this user"
}
reject
}


...
}

--
View this message in context: http://freeradius.1045715.n5.nabble.com/Accept-a-number-of-MAC-address-per-login-tp4666354p4669220.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.



More information about the Freeradius-Users mailing list