Some guidance please

Mark - Myakka Technologies mark at mailmt.com
Mon Jan 13 19:13:58 UTC 2025


We have been using FreeRadius for over 10 years to authenticate our PPPoE users.  We are putting in a new system that will be using DHCP and would like to authentication and accounting on our DHCP clients.  Being these clients may be using their own equipment, MAC address username will not be the best.

We have setup our system to use Option 82 to pass the username and password to the DHCP server.  I have confirmed that the DHCP is receiving the Option 82 correctly and passing it to FreeRadius as both Agent-Circuit-Id and ADSL-Agent-Circuit-Id.

I'm currently trying to figure out the best way to take the information contained in Agent-Circuit-Id and parse that to replace both username and password on the authorize request. 

Should I try to do this be writing my own ULang script in Policy.d and putting that in the start of authorize {} section?

Should I dig into doing it as a PERL script?  Seems like FreeRadius is optimized for PERL and doesn't take a performance hit.

Has this been done before and I'm just not using the correct keywords in google to find it?


I have read in certain posts that modifying User-Name is not recommended.  If that is the case what variable should be used and where in the config should it be changed?


Thanks
  


--

Thanks,
 Mark                          mailto:mark at mailmt.com

Myakka Communications
www.Myakka.com

Serving Manatee and Sarasota Counties with High-Speed Internet for over 20 years



More information about the Freeradius-Users mailing list