Hello Joy -
On Wednesday 25 April 2001 18:05, [EMAIL PROTECTED] wrote:
> Hi Hugh,
>
> i want to write a hook to find out if the user is already in the RADUSAGE
> table or not. if not the username will be added to the USEDCARDS table.
>
> Can you give me a hint or can say me what i must write to the config file?
>
Basically, you will need to reference the SQL session database object and an
AuthBy SQL object that references the USEDCARDS table in your hook. Then you
can use the low-level routines inside Radiator to do the neccessary queries.
There are some example hooks in the file "goodies/hooks.txt" that will give
you the basics and you will need to read the Radiator source to find out how
to buiild and issue the SQL queries.
Which hook to use will depend on when during packet processing you want the
hook to be called.
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.