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. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html