Problem with external authentication script

Ivan Kalik tnt at
Mon Jun 8 23:49:48 CEST 2009

>>> I want to use MOTP for authentication. MOTP uses a shell-script
>>> (/usr/local/bin/ to verify the given password. The script
>>> needs five arguments (User, One-Time-Password, Secret, PIN and Offset).
>>   Where do those arguments come from?
> OK - that's what I forgot to say. The first two arguments (user and
> password) come directly from the user. The next three arguments (secret,
> pin and offset) are per-user-values. So I wanted to configure these
> values in the 'users'-file (/etc/freeradius/users)
> For example:
> [...]
>    user1
>       Secret = 143a5c6fa125ac1f,
>       PIN = 1234,
>       Offset = 0
>>   The %{...} syntax replaces the given string with the *value* of the
>> named attributed.  Where are you setting these values?
> Also in the users file.

Well, if that is your user entry, you haven't set those attributes. They
are configured as reply, not check attributes. Should be something like:

user1   Secret:=143a5c6fa125ac1f, PIN:=1234, Offset:=0

Ivan Kalik
Kalik Informatika ISP

More information about the Freeradius-Users mailing list