(RADIATOR) if clause with portlimit for accounting requests

Utku Er erutku at netone.net.tr
Thu Jan 17 17:11:47 CST 2002


 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20020118/976b4e64/attachment.html>


More information about the radiator mailing list