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

Matthew Newton mcn4 at
Thu Sep 24 00:27:55 CEST 2015

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})$/) {


  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 Newton, Ph.D. <mcn4 at>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at>

More information about the Freeradius-Users mailing list