Hello Darwin -

On Tue, 19 Oct 1999, Darwin A. Bawasanta wrote:
> what i'm interested in knowing is whether i can do something like
> this:
> 
> <Handler Caller-Id="select BLOCKED_CLI from BLOCKED_FONE_TBL where
> BLOCKED_CLI='%{Caller-Id}'">
>         <AuthBy FILE>
>         Filename %D/reject-users
>         </AuthBy>
> </Handler>
> 
> errr... i'm not sure about my select statement there but i don't see
> any chance for me to place my SQL server,database,username/password
> connection parameters anywhere.
> 
> reject-users file contains:
> DEFAULT         Auth-Type = "Reject:Blocked Caller-Id."
> 
> 
> my objective is to have a list of phone numbers (dynamic too) that
> will served as basis for rejecting authentication via Caller-IDs.
> 
> will this be possible?
>      

Yes its possible - but in a PreHandlerHook. The Hook code will have to call the
DBI functions directly to do your SQL query, and add a pseudo-attribute to the
incoming packet so you can then catch it in your Handler.

hth

Hugh

--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody

===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to