Sequencing the users file with include
    Sébastien 65 
    sebastien-65 at live.fr
       
    Tue Jan 24 14:10:48 UTC 2023
    
    
  
Hello,
I noticed a problem if I configure the file this way :
root at radius:/etc/freeradius/3.0# cat users
# user_zone1
$INCLUDE /etc/freeradius/3.0/users_1
# user_zone2
$INCLUDE /etc/freeradius/3.0/users_2
# Test
test  Cleartext-Password := "::123456789@"
        Reply-Message := "Hello, %{User-Name}"
#DEFAULLT Section
DEFAULT
        Alc-Primary-Dns = 8.8.8.8,
        Alc-Secondary-Dns = 192.168.100.100,
        Framed-IP-Netmask = 255.255.255.0,
        Alc-Default-Router  = 192.168.100.1,
        Fall-Through = Yes
DEFAULT Framed-Protocol == PPP
        Framed-Protocol = PPP,
        Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "CSLIP"
        Framed-Protocol = SLIP,
        Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "SLIP"
        Framed-Protocol = SLIP
All the DNS and default-router part is not transmitted... I have to reorganize the file in this way for it to work :
root at radius:/etc/freeradius/3.0# cat users
#DEFAULLT Section
DEFAULT
        Alc-Primary-Dns = 8.8.8.8,
        Alc-Secondary-Dns = 192.168.100.100,
        Framed-IP-Netmask = 255.255.255.0,
        Alc-Default-Router  = 192.168.100.1,
        Fall-Through = Yes
DEFAULT Framed-Protocol == PPP
        Framed-Protocol = PPP,
        Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "CSLIP"
        Framed-Protocol = SLIP,
        Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "SLIP"
        Framed-Protocol = SLIP
# user_zone1
$INCLUDE /etc/freeradius/3.0/users_1
# user_zone2
$INCLUDE /etc/freeradius/3.0/users_2
# Test
test  Cleartext-Password := "::123456789@"
        Reply-Message := "Hello, %{User-Name}"
Is this normal behavior (FreeRADIUS Version 3.0.21) ?
Thanks for the explanation.
    
    
More information about the Freeradius-Users
mailing list