Hello Utku -
You should use the Class attribute and a Handler for each Class value for the accounting, something like this: # define AuthBy clauses <AuthBy SQL> Identifier SQLDB ...... AddToReply ..... \ Class = SQLDB </AuthBy> <AuthBy RADIUS> Identifier PROXY ..... AddToReply ..... \ Class = PROXY </AuthBy> # define Handlers <Handler Request-Type = Accounting-Request, Class = SQLDB> AuthBy SQLDB ..... </Handler> <Handler Request-Type = Accounting-Request, Class = PROXY> AuthBy PROXY ..... </Handler> <Handler ....> AuthByPolicy ContinueUntilAccept AuthBy SQLDB AuthBy PROXY ..... </Handler> regards Hugh On Fri, 18 Jan 2002 10:11, Utku Er wrote: > Hi, > > its strange I know but I have to ask: > > can I have a something like an "if clause" for accounting requests using > portlimit or some other check from the sql ? I see that for the accounting > reqests, radiator does not check the portlimit. what other ways can I do > this? > > I mean > write accounting > if <some check from the database which returns 0 or other integer> > then accounting requests should go to sqldatabase1 > else accounting requests should go to authbyradius > > > I tried: > <Handler Realm=somerealm, Request-Type=Accounting> > Identifier something > > <AuthBy GROUP> > AuthByPolicy ContinueAlways > AuthBy sendaccountingonly > > <AuthBy GROUP> > AuthByPolicy ContinueWhileAccept > <AuthBy PORTLIMITCHECK> > SessionLimit 1 > CountQuery select COUNT(*) from AAA_REALMS where REALM='%R' > </AuthBy PORTLIMITCHECK> > > <AuthBy GROUP> > AuthByPolicy ContinueUntilAccept > #this is other > <AuthBy RADIUS> > Host somehost > Secret mykey > ....... > </AuthBy RADIUS> > </AuthBy> > > </AuthBy> > </AuthBy> > </Handler> > > thanks, > Utku -- 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 [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.