Creating templates for users
Fred
fred.maison at gmail.com
Thu Oct 20 18:20:17 CEST 2011
extracted from templates.conf :
# For now, you can use templates only for sections in
# radiusd.conf, not sub-sections. So you still have to use
# the "$INCLUDE file.." method for things like defining
# multiple "sql" modules, each with similar configuration.
It seems this cannot be used in users file ...
Instead, you can use $INCLUDE in radiusd.conf ...
Regards,
Fred
2011/10/20 Krzysztof Grobelak <kgrobelak at airspeed.ie>:
> Hello,
>
> I am having some troubles creating templates with wimax attributes for
> users. I created files with atributes in them in the form:
>
> Alvarion-R3-IF-Name += CPEL3Mgmt,
> Alvarion-PDFID += 1,
> WiMAX-Packet-Data-Flow-Id += 1,
> WiMAX-Service-Data-Flow-Id += 1,
> WiMAX-Direction += 3,
> WiMAX-Transport-Type += 1,
> WiMAX-Uplink-QOS-Id += 1,
> WiMAX-Downlink-QOS-Id += 1,
>
> and then in the users file I use:
>
> 30001020 Cleartext-Password := "30001020"
> $INCLUDE cpe_mgmt,
> $INCLUDE ethcs_1_vlan_sf,
> WiMAX-VLAN-ID += 175,
> Session-Timeout = 3600,
> Reply-Message = "4motion
> test"
>
> but I am getting error:
> Thu Oct 20 16:35:24 2011 : Error: /usr/local/etc/raddb/users[63]: Parse
> error (reply) for entry 30001020: expecting operator
> Thu Oct 20 16:35:24 2011 : Error: Errors reading /usr/local/etc/raddb/users
> Thu Oct 20 16:35:24 2011 : Error: /usr/local/etc/raddb/modules/files[7]:
> Instantiation failed for module "files"
> Thu Oct 20 16:35:24 2011 : Error:
> /usr/local/etc/raddb/sites-enabled/default[152]: Failed to load module
> "files".
> Thu Oct 20 16:35:24 2011 : Error:
> /usr/local/etc/raddb/sites-enabled/default[62]: Errors parsing authorize
> section.
>
> Simillar thing happened when i tried using template.conf
>
>
> 30001020 Cleartext-Password := "30001020"
> $template
> cpe_mgmt,
> Session-Timeout = 3600,
> Reply-Message =
> "4motion test"
>
> but the error i got was:
> Thu Oct 20 17:00:46 2011 : Debug: including configuration file
> /usr/local/etc/raddb/templates.conf
> Thu Oct 20 17:00:46 2011 : Error: /usr/local/etc/raddb/templates.conf[109]:
> Invalid operator in assignment
> Thu Oct 20 17:00:46 2011 : Error: Errors reading
> /usr/local/etc/raddb/radiusd.conf
>
> Is the += format not supported in the templates.conf?? Or is there any other
> way to save myself the problem of typing all the attributes for each user??
>
> Thanks in advance.
>
>
>
> Kind regards,
> Krzysztof
>
>
>
>
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
More information about the Freeradius-Users
mailing list