(RADIATOR) Two Class attribute same time.

Hugh Irvine hugh at open.com.au
Sat Nov 10 06:02:04 CST 2001


Hello Balgaa -

You can only use a single Class attribute, however, it can contain 
anything you like up to the limit of a radius attribute (~250 
characters). This means that you can manipulate the contents of the 
Class attribute to contain multiple things, but you will need to do 
so in a hook. There are some example hooks in the file 
"goodies/hooks.txt" in the Radiator distribution.

regards

Hugh


At 16:34 +0800 01/11/10, User BALGAA System Engineer wrote:
>Hi Hugh,
>
>I want to know how to use Class attribute.
>
>Is it possible to use 2 Class attribute same time?
>
>Following Radiator part of config file:
>
><snip>
>
><AuthBy SQL>
>         DBSource        dbi:mysql:radius:xxx.xxx.xxx.xxx
>         DBUsername      <removed>
>         DBAuth          <removed>
>
>         Identifier FromOutsideRoamAuthOnly
>
>         AuthSelect select
>ENCRYPTEDPASSWORD,CHECKATTR,REPLYATTR,if(PREPAID="YES",TIMELEFT,NIGHT) as
>TIME, class from SUBSCRIBERS where USERNAME='%n' and STATUS='Active' and
>ROAM='YES'
>         EncryptedPassword
>
>         AuthColumnDef 0, Encrypted-Password, check
>         AuthColumnDef 1, GENERIC, check
>         AuthColumnDef 2, GENERIC, reply
>         AuthColumnDef 3, Session-Timeout, reply
>----->  AuthColumnDef 4, Class, reply
>
>         AddToReply Framed-Protocol = PPP,Service-Type = 
>Framed-User,Framed-MTU =
>1500,Framed-Compression = Van-Jacobson-TCP-IP,
>----->Class = FromOutsideIPASS
>
>         AccountingTable
>         DefaultSimultaneousUse  1
>         RejectEmptyPassword
>
></AuthBy>
>
><snip>
>
>
>Thank you,
>Balgaa
>
>===
>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.

-- 

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