5 Aug
2011
5 Aug
'11
6:42 a.m.
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-l... Sent from the FreeRadius - User mailing list archive at Nabble.com.