"authentication" sub in perl
Alan DeKok
aland at deployingradius.com
Fri Sep 30 17:36:32 CEST 2011
Alex rsm wrote:
> I am trying to call an external perl function within "authentication" sub"
>
> - functions are uncommented in modules/perl file
> ...
> func_authenticate = authenticate
> func_authorize = authorize
> ...
The default example works.
> - subs are modified in /raddb/example.pl
> sub authenticate{
> print "TEST1\n";
> }
>
> sub authenticate {
> print "TEST2\n";
> /usr/local/etc/raddb/test.pl;
> }
>
> When freeradius receives a REQUEST, only "authenticate" sub is called
> and not "authenticate" sub.
That makes NO sense at all.
You have TWO "authenticate" subroutines, and you expect that Perl will
magically call the one you want?
Computers don't work that way.
> How can I enable "authenticate" to be called when a REQUEST is arrived?
Ask a question that makes sense.
Alan DeKok.
More information about the Freeradius-Users
mailing list