Re: Help with configuring for multiple DC for LDAP

Alan DeKok <[email protected]>
Newsgroups gmane.comp.freeradius.user
Message-ID <[email protected]>
On Apr 10, 2025, at 10:51 AM, Wayne Sprouse via Freeradius-Users <[email protected]> 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.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.