I'm trying to figure out how to do a couple new things with Radiator that
are well beyond what I've done before.

One thing I'd like to do is a SQL query during the authentication process.
What it would do is add up all the past time records to see if they have
exceeded their monthly limit (100 hours or whatever).  This would be in
addition to all the normal simultaneous use checking, etc. I'd also like to
detect that they attempted a login when they have exceeded their use, so
that tech support can be alerted to this.

So from the reading I've done, I believe that doing this in the
PreProcessingHook is the best place, no?  This would also allow me to write
out a message to the log that could be detected, or perhaps I should instead
do this in the PostAuthHook where I can munge the request to Access-Reject
and also be able to have the database handle from <AuthBy SQL> available to
write to the RADLOG messages log?

In the same piece of code I'll want to query the database, knowing the
Client-Id (the NAS box that they came from) and also decide whether they can
log in.

I'd appreciate any ideas on these things.

Thanks,
Chris


===
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