[RADIATOR] Redirect Clients when Capped
Hugh Irvine
hugh at open.com.au
Wed Jul 3 04:55:45 CDT 2013
Hello Robert -
You will probably need a hook to do this sort of thing.
See the example hooks in "goodies/hooks.txt".
regards
Hugh
On 3 Jul 2013, at 19:17, Robert kennedy <robert at onlinedirect.co.za> wrote:
>
> Hi All
>
> I’m running an older version of radiator. 3.6 to be exact.
>
> I would like to redirect users when they are capped. I do see the ascend client dns attributes, but I cannot seems to figure out how to use them only when a user is capped.
>
> I did read the FAQ and saw how they used the ascend dns attribute but it doesn’t seem to help me for capped users only.
>
> I’ve tried this, which has failed badly I get WARNING: No such attribute Ascend-Client-Primary-DNS . From my radius.cfg
>
> <AuthBy SQL>
> Identifier AuthLocal
>
> DBSource dbi:Pg:dbname=visp;host=127.0.0.1
> DBUsername radiator
> DBAuth xxxxxx
> Timeout 2
> RejectEmptyPassword
>
> AuthSelect select CAST(CASE WHEN adsl.token = 'test_online' THEN \
> 'x.x.x.x' ELSE 'x.x.y.y' END AS varchar) as \
> dns, adsl.pass_word, adsl.adsl_class_id, \
> adsl_disconnect_time_bw_cap (%0) as session_timeout, \
> login_limit, adsl.token \
> from adsl_accounts adsl, services s where \
> adsl.bw_allowed <> 0 and adsl.username=%0 and adsl.enabled='1' \
> and adsl.account_id=s.account_id and adsl.bw_allowed > adsl.bw_used
>
> AuthColumnDef 0, Ascend-Client-Primary-DNS, reply
> AuthColumnDef 1, Password, check
> AuthColumnDef 2, Class, reply
> AuthColumnDef 3, Session-Timeout, reply
> AuthColumnDef 4, Simultaneous-Use, check
> AuthColumnDef 5, Configuration-Token, reply
>
> </AuthBy>
>
>
> Any help would be greatly appreciated.
>
> Warm Regards
>
> Robert
>
>
>
>
>
>
> Technical HOD
> tel. 011 317 1800 <ODspacer.jpg>fax. 0866 467 737 cell. email. robert at onlinedirect.co.za
>
>
> This email and any files transmitted with it is confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. The company accepts no liability for any damage caused by any virus transmitted by this email.
> _______________________________________________
> radiator mailing list
> radiator at open.com.au
> http://www.open.com.au/mailman/listinfo/radiator
--
Hugh Irvine
hugh at open.com.au
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc.
Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.
More information about the radiator
mailing list