Duplicate SQL records versus unique constraints

Alan DeKok aland at deployingradius.com
Mon Jun 8 12:50:52 CEST 2009


Arran Cudbard-Bell wrote:
> Ooooooo useful. Would you be adverse to a patch adding a policy section
> that provided the requisite behavior for both Access-Accept and
> Accounting-Request packets ? Or would you like two policy sections.

  I'll look at the patch and see.

> i.e. One that has a switch statement for packet type, or two different
> policies.
> 
> The advantage of the one policy is that it's listed with the same name
> in the require sections of the default config. The disadvantage is the
> added switch statement.

  Hm... yes.  I don't have strong opinions on this subject.  It may be
better to let the CPU do a bit more work than the admin, and use a
switch statement to keep the external name the same.

> This is more of a general question for future patches... Do you want
> policies to be self contained, or do you not mind if they sprawl a bit.

  "sprawl" ?

  Alan DeKok.




More information about the Freeradius-Users mailing list