Hello Danny -

On Saturday 03 February 2001 02:07, Danny Kruitbosch wrote:
> Hi,
>
> Can someone tell me if it's possible to execute some perl code within a
> AuthBy SQL or AuthBy GROUP statement.
>
> So something like this:
>
> <AuthBy SQL/GROUP>
>
>  ......
>
>  AuthSelect select PASSWD, CHECKS, REPLYS from USERS where UID = '%n%
>  AuthColumDef 0, User-Password, check
>  AuthColumDef 1, GENERIC, check
>  AuthColumDef 2, GENERIC, reply
>
>  sub { some perl code }
>
> </AuthBy>
>
>
> Or should I use AuthBy EXTERNAL for this. I did a PostAuthhook but this
> gets executed AFTER ALL the AuthBy's. I want to manipulate the check and
> reply items before I hand them of to the NEXT AuthBy.
>
> Any help would be great!
>

You are correct, you will need a custom AuthBy module (possibly AuthBy 
EXTERNAL but that would not be my first choice).

Have a look at section 17 in the Radiator 2.17.1 reference manual, and use 
the code in "Radius/AuthTEST.pm" as an example.

hth

Hugh


-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to