Freeradius with motp

Isidro Hortelano isidrohortelano at gmail.com
Thu Mar 16 10:49:52 CET 2017


Hi all,

I'm trying to configure freeradius version 3.0.3 with motp, to check to
verify the otp i use a external script. This is my current configuration:

/etc/raddb/radiusd.conf

moudules {
            .....
            exec MOTP {
                        wait = yes
                        program = "/etc/raddb/otpverify.sh %{User-Name}
%{User-Password} %{reply:Secret
                         %{reply:Pin} %{reply:Offset}"
                        input_pairs = request
                        output_pairs = reply
                    }
            .......

}


sites-enabled/default

Auth-Type External {
MOTP
}

/etc/raddb/users

DEFAULT Auth-Type = External
Exec-Program-Wait = "/usr/local/etc/raddb/otpverify.sh '%{User-Name}'
'%{User-Password}' '%{reply:Secret}' '%{reply:Pin}' '%{reply:Offset}'",
Fall-Through = Yes

test2
        Secret = a843ad39b0bSe12ede3092c0ac30676c23eb23ae,
        Pin = 1234,
        Offset = 0

When i start the radius server I'm getting this error, anybody know about
it ?

radiusd -X error:

reading pairlist file /etc/raddb/mods-config/files/authorize
/etc/raddb/mods-config/files/authorize[213]: Parse error (check) for entry
test2: Unknown value 'External' for attribute 'Auth-Type'
Failed reading /etc/raddb/mods-config/files/authorize
/etc/raddb/mods-enabled/files[9]: Instantiation failed for module "files"

Regards,


More information about the Freeradius-Users mailing list