10 Apr
2025
10 Apr
'25
2 p.m.
On Apr 10, 2025, at 10:51 AM, Wayne Sprouse via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
I want to set up my FreeRADIUS server to check the supplied user name and decide which DC to use for authentication. I have tried using the following code in my authorize section of a custom sites-enabled file.
# Check if the User-Name contains an email if ("%{User-Name}" =~ /@(.+)$/) { # Extract domain from email and store in email_domain set email_domain = "%{1}"
You can't just invent things and expect them to work. The configuration files and Unlang are extensively documented. If you want to define local attributes, then read raddb/dictionary, and follow the instructions there. Alan DeKok.