FreeRADIUS + MySQL + DHCP Opt82

Fajar A. Nugraha list at fajar.net
Fri Mar 30 14:01:12 CEST 2012


On Fri, Mar 30, 2012 at 6:12 PM, IVB <ivb at is.ua> wrote:

> Agent-Circuit-Id = 0x000403fc0001

let's start with that one.

>  ( '00:12:23:56:78:9A', 'Agent-Circuit-ID', x'000403fc0001', '==' ),

Does that work? Shouldn't it be something like

( '00:12:23:56:78:9A', 'Agent-Circuit-ID', 0x000403fc0001, '==' ),

?


Another alternative is to insert something like this (note the operator)

( '00:12:23:56:78:9A', 'Agent-Circuit-ID', 0x000403fc0001, ':=' ),

... and then on authorize section add something like this (just for check)

if ( (request:User-Name == "00:12:23:56:78:9A") &&
(control:Agent-Circuit-ID != "%{request:Agent-Circuit-ID}") ) {
   update control {
      Auth-Type := "Reject"
  }
}

then use debug mode again. It should print out what it recognize
control:Agent-Circuit-ID (which is from db) and
request:Agent-Circuit-ID. Then you just need to edit entry on db to
match what's on the request.

-- 
Fajar


More information about the Freeradius-Users mailing list