Cannot control attribute ordering via rlm_perl

Alan DeKok aland at deployingradius.com
Sat Jun 30 14:49:48 CEST 2018


> On Jun 30, 2018, at 8:38 AM, Heiko Rehm <hrehm at pyra-mite.net> wrote:
> 
> Hello Alan,
> 
>>  You can work around it by returning policy names in Perl.  Then in FreeRADIUS, check for those policy names, and add the correct attributes.
> 
> Interesting. Would you have a config example how to build this?

* edit raddb/dictionary to create an attribute which will contain the policy names:

ATTRIBUTE	My-Policy 3003 string

  Then set the value of that attribute in Perl.  e.g. to "policy1"

  Then in FreeRADIUS:

	if (My-Policy == "policy1") {
		... add Wimax attributes ...
	}

> Or a hint to a manual where those Policies are described?

  You need to create your own policies.  The server doesn't come with example configurations for every possible situation.

  Alan DeKok.




More information about the Freeradius-Users mailing list