Creating templates for users

Fred fred.maison at gmail.com
Thu Oct 20 19:14:59 CEST 2011


Hello,

You are trying to update reply in user.conf ; this is ok for static.
If you want to go further, may be you could do the same using unlang
(see man unlang)

you could create a template doing the right  update reply ...

for example in template.conf :
updateWimax1 {
      update reply {
         Alvarion-R3-IF-Name = CPEL3Mgmt
         Alvarion-PDFID  = 1
         WiMAX-Packet-Data-Flow-Id  = 1
         WiMAX-Service-Data-Flow-Id = 1
         WiMAX-Direction  = 3
         WiMAX-Transport-Type = 1
         WiMAX-Uplink-QOS-Id  = 1
         WiMAX-Downlink-QOS-Id = 1
    }
}

Then, for example at end of authorize section in you config or in
post-auth section :
if ( some condition ....) {
    $template updateWimax1
}

Fred



More information about the Freeradius-Users mailing list