Outpairs not working on external script when user is located in MYSQL

Alan DeKok aland at deployingradius.com
Tue Oct 9 15:30:26 CEST 2012


Thomas Raabo - Zitcom A/S wrote:
> Need som help getting my external script to work
> 
> Here is my External module
> 
>         exec MOTP {
>         wait = yes
>         program = "/etc/raddb/otpverify.sh %{User-Name} %{User-Password} %{reply:Secret} %{reply:Pin} %{reply:Offset}"

  What do you think that does?  What is "reply:Secret" and "reply:Pin" ?

> Mon Oct  8 23:52:57 2012 : Info: [MOTP]         expand: %{reply:Secret} ->
> Mon Oct  8 23:52:57 2012 : Info: [MOTP]         expand: %{reply:Pin} ->
> Mon Oct  8 23:52:57 2012 : Info: [MOTP]         expand: %{reply:Offset} ->

  Well, they don't exist, do they?

> In /usr/share/freeradius/dictionary I have
> 
> $INCLUDE dictionary.motp

  Don't do that.  There's a dictionary file in raddb/dictionary for a
reason.  Go read it.

> And from my
> 
> Dictionary.motp
> 
> #
> ATTRIBUTE       Secret                  960     string
> ATTRIBUTE       Pin                     961     string
> ATTRIBUTE       Offset                  962     string

  Which is wrong.  It's been wrong for pretty much a decade.

  Read raddb/dictionary for instructions on creating attributes which work.

> All my configuration is based on
> 
> http://nicoblog.goralski.fr/tag/Radius

  That web site is wrong.  Read the *FreeRADIUS* documentation for
instructions on how to properly edit the dictionaries.

  Alan DeKok.


More information about the Freeradius-Users mailing list