configurable fail-over in unlang or policy doesn't force return?

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Aug 27 09:42:40 CEST 2014


On 27 Aug 2014, at 08:10, Zenon Mousmoulas <zmousm at noc.grnet.gr> wrote:

> 27 Αυγ 2014, 3:43, ο/η Alan DeKok <aland at deployingradius.com> έγραψε:
> 
>> Zenon Mousmoulas wrote:
>>> Forcing return within a policy doesn't seem to work; the return code
>>> propagates correctly but processing doesn't stop.
>> 
>> Yes.  Policies are like subroutines.  You can return from a policy,
>> but it doesn't affect the function which called the policy.
> 
> Unlang blocks as well?

I'm fairly sure it should return out of unlang blocks.

>> 
>>> I'm not sure if this is by design? Using v3.0.x (not head but close).
>> 
>> It's by design.

Yes it's actually quite nice if the return stops at the depth of the policy call.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140827/b1575c97/attachment.pgp>


More information about the Freeradius-Users mailing list