Check MAC address

nicolas.clo at ricoh-industrie.fr nicolas.clo at ricoh-industrie.fr
Wed Jun 18 14:16:27 CEST 2014



Hi list,



Are there any way to check validity of MAC address but one times only and not every time while
processing the virtual site ?

Actually I used this :

authorize {

	if (!Calling-Station-Id == "%{sql:SELECT mac_address FROM `mac` WHERE
mac_address='%{Calling-Station-Id}'}") {
                                update reply {
                                        Reply-Message += "MAC address %{Calling-Station-Id} was not
found in database - Login refused "
                                        }
                                        reject
                        }
}


The cache module is the only way ?
                                                                   
                                                                   
 Thanks.                                                           
                                                                   
 Nicolas.                                                          
                                                                   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140618/e13d8daa/attachment.html>


More information about the Freeradius-Users mailing list