Accept a number of MAC address per login

aceror aceror2001 at yahoo.es
Sun Aug 7 19:39:14 CEST 2011


Thanks!

El vie, 05-08-2011 a las 03:42 -0700, ShR3K escribió:
> 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





More information about the Freeradius-Users mailing list