Help with configuring for multiple DC for LDAP
Alan DeKok
aland at deployingradius.com
Thu Apr 10 18:00:47 UTC 2025
On Apr 10, 2025, at 10:51 AM, Wayne Sprouse via Freeradius-Users <freeradius-users at 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.
More information about the Freeradius-Users
mailing list