On Thu, Feb 02, 2006 at 10:32:53AM +0100, Carlo Prestopino wrote:
Hi all,
I would like to insert a check on users' MAC address operated by freeRADIUS.
The objective is to allow users to use only one MAC address to gain access to a Wi-Fi network. The new query will check if user's MAC address is the same of his first access, and deny access if he is using a different one.
To do this a new query needs to be inserted into /raddb/sql.conf to perform this check in the authentication process, and the src/modules/rlm_sql/rlm_sql.c needs to be modified.
Erk. Why not just make it a check-item (and somehow pass it if the item is absent) and use the post-auth SQL hook to insert the Mac address into the relevant table? -- ----------------------------------------------------------- Paul "TBBle" Hampson, Bsc, MCSE On-hiatus Asian Studies student, ANU The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361) Paul.Hampson@Pobox.Com Of course Pacman didn't influence us as kids. If it did, we'd be running around in darkened rooms, popping pills and listening to repetitive music. -- Kristian Wilson, Nintendo, Inc, 1989 License: http://creativecommons.org/licenses/by/2.1/au/ -----------------------------------------------------------