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 <[email protected]> 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. > [email protected] > > > 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 > [email protected] > http://www.open.com.au/mailman/listinfo/radiator -- Hugh Irvine [email protected] 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. _______________________________________________ radiator mailing list [email protected] http://www.open.com.au/mailman/listinfo/radiator
