2.2.1: if-block leads to reject

Jakob Hirsch jh at plonk.de
Sun Sep 29 00:36:07 CEST 2013


On 28.09.2013 16:44, Alan DeKok wrote:
>> This looks quite strange to me...
>   I've pushed a fix.  Please try the v2.x.x branch on git.  If it's OK,
> we'll release 2.2.1 on Monday.

Thanks, but it doesn't seem to fix it:

version: FreeRADIUS Version 2.2.2 (git #f1c2629)

config:

authenticate {
  Auth-Type Test {
    if (1) {
      update reply {
        Reply-Message := "some message"
      }
    }
    ok
  }
}


debug output:

+group Test {
++? if (1)
? Evaluating (1) -> TRUE
++? if (1) -> TRUE
++if (1) {
+++update reply {
+++} # update reply = noop
++} # if (1) = reject
+} # group Test = reject
Failed to authenticate the user.


Regards,
Jakob


More information about the Freeradius-Devel mailing list