Hello Daniel -


At 12:03 +0100 01/1/16, [EMAIL PROTECTED] wrote:
>Hi everyone,
>
>I wonder if we could use the value obtained by LimitQuery in the
>AuthPORTLIMITCHECK clause.
>I'm not sure if it's possible to write something like this:
>
><AuthByPORTLIMITCHECK>
>      SessionLimit 20  --> default
>      CountQuery select COUNT(*) from RADONLINE where ....
>      LimitQuery select LIMIT from ...
>      ClassForSessionLimit     premium, x --> x is the value of LimitQuery
>      ClassForSessionLimit     medium, y --> y = f(x), for example: 75% of x
><AuthBy>
>
>Can Radiator do this without using hooks?
>

You can't do it directly in the AuthBy PORTLIMITCHECK.

What do you could do (if you really don't want to use a hook) is use 
an AuthBy SQL prior to the PORTLIMITCHECK with an AuthSelect to get 
the values that you would store as pseudo-attributes in the reply 
packet with AuthColumnDef's. You would then use special characters in 
the ClassForSessionLimit (assuming special characters are accepted 
there).

This would really be *much* easier to do in a hook though.

regards

Hugh

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.

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