(RADIATOR) service-type=call-check question.
Griff Hamlin
griff3 at quik.com
Tue Jul 24 15:45:04 CDT 2001
Hello,
I'm trying to handle a situation where I need to perform an
authorization for a service-type of 'call-check'. What I want to do is,
look in a mysql table and if I find a row matching the combination of
username, nas-ipaddress then I want the router to accept the call and
perform a normal authentication. If I don't find the row then I want it
to be rejected. I would have a handler like the following:
<Handler Service-Type=call-check>
<AuthBySQL>
IgnoreAccounting
# appropriate DBSource and DBAuth parameters
AuthSelect select <something that eludes me>
</AuthBy>
</Handler>
I'm afraid I don't have the slightest idea what to put in there. It's
not clear to me if I need to add another field to my database that
contains an Auth-Type of some sort, but I don't know what that should be
in the event that I just want the NAS to accept the call and do a normal
authentication, not just redirect to some AuthBy named by an identifier.
I also don't know how to tell it to set the Auth-Type to reject in the
event that no rows are returned. Any help is appreciated.
Griff Hamlin, III
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list