(RADIATOR) Multiple Check Attributes

Hugh Irvine hugh at open.com.au
Wed Jan 2 17:54:15 CST 2002


Hello Robert -

On Thu, 3 Jan 2002 00:24, Robert Blayzor wrote:
> That's what I thought, however I am returning these from a database,
> would I put the regular expression in the database?  Here is a clip from
> my AuthBy..
>
>
> <AuthBy SQL>
>         Identifier      Auth-NAS
>         DBSource        dbi:Sybase:server=%{GlobalVar:DBServ1}
>         DBUsername      xxx
>         DBAuth          xxx
>         AuthSelect      EXEC sp_NASDBLookup '%n',
> '%{Called-Station-Id}', '%c'
>         AuthColumnDef   1, User-Passowrd, check
>         AuthColumnDef   2, Framed-IP-Address, reply
>         AuthColumnDef   3, NAS-Port-Type, check
>         AuthColumnDef   4, Framed-Route, reply
>         AuthColumnDef   5, Session-Timeout, reply
>         AuthColumnDef   6, Idle-Timeout, reply
>         AuthColumnDef   7, Port-Limit, reply
>         AuthColumnDef   8, Framed-Protocol, reply
>         AuthColumnDef   9, Framed-Compression, reply
>         AddToReply      Service-Type = "Framed-User", Framed-MTU = 1500
>         AccountingTable
>         Timeout         20
>         FailureBackoffTime      300
> </AuthBy>

You should modify your stored procedure to return an additional field that 
would contain one or more check attributes:

	NAS-Port-Type = /Async|ISDL/

and add the following to your list of AuthColumnDef's (with the correct 
number for the field returned by your AuthSelect):

	AuthColumnDef ..., GENERIC, check

Have a look at section 6.28 in the Radiator 2.19 reference manual (included 
in the distribution in the file "doc/ref.html").

regards

Hugh


-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
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