multiOTP - /etc/freeradius/policy.conf[33]: Expecting section start brace '{' after "else if"

Timothy tpharryman at gmail.com
Fri Sep 25 19:34:26 CEST 2015


Hello, Matthew, and thank you very much.

I had installed FreeRADIUS on this Ubuntu server using apt-get, I guess
2.1.12 is the latest they have there. The site recommends using the Ubuntu
package, but since that is the latest, I built the packages.

I changed the "else if" to "elsif" and it worked fine.  I tried to change
the HowTo to reflect this, but it did not like any of my OpenID attempts at
authentication :|

Again, thank you very much!

On Wed, Sep 23, 2015 at 3:27 PM, Matthew Newton <mcn4 at leicester.ac.uk>
wrote:

> On Wed, Sep 23, 2015 at 03:11:34PM -0700, Timothy wrote:
> > FreeRADIUS Version 2.1.12, for host x86_64-pc-linux-gnu, built on Aug 26
> ...
> > If someone can shed some light on this matter, I would gratefully
> > appreciate it!
>
> Well, you're running very ancient 2.1.12 and that HOWTO was
> written for version 3.
>
> The "else if" should be "elsif" IIRC. Aside from that at a quick
> glance the rest looks legal.
>
> You could try changing
>
>   else if (!control:Auth-Type && User-Password =~
> /^${policy.multiotp_prefix}([0-9]{10})$/) {
>
> to
>
>   elsif (!control:Auth-Type && User-Password =~ /^otp:([0-9]{10})$/) {
>
> or something simpler to see if you can get it working on 2.1.12.
> But you really should upgrade.
>
> Matthew
>
>
> --
> Matthew Newton, Ph.D. <mcn4 at le.ac.uk>
>
> Systems Specialist, Infrastructure Services,
> I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom
>
> For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list