need help setting/using attribute, did something wrong...

Duane Cox duanec at illicom.net
Fri Jul 28 16:17:09 CEST 2006


Here are parts of my config as well as parts from debug, and I must be doing
something wrong or missed something.
I am trying to set the NAS-Identifier, since it is not sent in the
access-request packet, and use this later in the post-auth section.
As you can see, later in the post-auth section, the attribute is NULL.

<debug output>
rad_recv: Access-Request packet from host 192.168.0.251:1024, id=61,
length=60
        User-Name = "60:07:93"
        NAS-IP-Address = 192.168.0.251
        NAS-Port = 1
        User-Password = "buywavc"
<snip>
    users: Matched entry DEFAULT at line 18
    users: Matched entry DEFAULT at line 21


<users file (lines 18-21) >
DEFAULT NAS-IP-Address == "192.168.0.251", NAS-Identifier := "LAB_CCU"
        Fall-Through = Yes

DEFAULT User-Name =~ "^6[0-9a-f]:[0-9a-f]\{2}:[0-9a-f]\{2}$", Post-Auth-Type
:= "waverider"


<debug output (NAS-Identifier did not get set...)>
 sql: postauth_query = "update wireless_data set tower = '%{NAS-Identifier}'
where serial = 'E' + substring('%{User-Name}',2,1) +
substring('%{User-Name}',4,2) + substring('%{User-Name}',7,2)"

<snip>

Login OK: [60:07:93] (from client LAB_CCU port 1)
  Found Post-Auth-Type waverider
  Processing the post-auth section of radiusd.conf
modcall: entering group waverider for request 0
rlm_sql (waverider): Processing sql_postauth
radius_xlat:  '60:07:93'
rlm_sql (waverider): sql_set_user escaped user --> '60:07:93'
radius_xlat:  'update wireless_data set tower = '' where serial = 'E' +
substring('60:07:93',2,1) + substring('60:07:93',4,2) +
substring('60:07:93',7,2)'
rlm_sql (waverider) in sql_postauth: query is update wireless_data set tower
= '' where serial = 'E' + substring('60:07:93',2,1) +
substring('60:07:93',4,2) + substring('60:07:93',7,2)
rlm_sql (waverider): Reserving sql socket id: 9
rlm_sql (waverider): Released sql socket id: 9
  modcall[post-auth]: module "waverider" returns ok for request 0
modcall: leaving group waverider (returns ok) for request 0
Sending Access-Accept of id 61 to 63.252.229.251 port 1024
        Waverider-Grade-Of-Service = silver
        Waverider-Priority-Enabled = disabled


Thanks,
Duane Cox




More information about the Freeradius-Users mailing list