(RADIATOR) radwho.cgi question

Hugh Irvine hugh at open.com.au
Thu Jan 10 18:27:17 CST 2002


Hello Angel -

On Fri, 11 Jan 2002 09:41, Angel Bustos wrote:
> Hi all again,
>
> I have trying with 2 realms: realmA and realmB
> I´ve defined 2 different SessionDatabase names
> When I invoke radwho.cgi I cannot isolate realm A and realmB to eventually
> show to 2 different hypothetical customers.
> radwho.cgi shows ALL the  online users (realms A and B)
> I´m beginning with DBM SessionDatabase.
> What is wrong in my settings?
>
> thanks in advance!
>
>
> <Handler Realm=realmA>
>        AuthByPolicy ContinueAlways
>        AuthBy SQLAccounting
>        AuthBy DBRealmA
>        AcctLogFileName %L/realmA-%Y%m%d
>        SessionDatabase realmA   <============
>        PasswordLogFileName %L/realmA/passlog-%Y%m%d
> </Handler>
>
> <Handler Realm=realmB>
>        AuthByPolicy ContinueAlways
>        AuthBy SQLAccounting
>        AuthBy DBRealmB
>        AcctLogFileName %L/realmB-%Y%m%d
>        SessionDatabase realmB      <============
>        PasswordLogFileName %L/realmB/passlog-%Y%m%d
> </Handler>
>
>
> <SessionDatabase DBM>
>        Filename %D/online-users
>        Identifier realmA       <=======(here realmB has the same effect)
> </SessionDatabase>
>

You should do something like this:


# define Handlers for each Realm

<Handler Realm=realmA>
       AuthByPolicy ContinueAlways
       AuthBy SQLAccounting
       AuthBy DBRealmA
       AcctLogFileName %L/realmA-%Y%m%d
       SessionDatabase realmA  
       PasswordLogFileName %L/realmA/passlog-%Y%m%d
</Handler> 

<Handler Realm=realmB>
       AuthByPolicy ContinueAlways
       AuthBy SQLAccounting
       AuthBy DBRealmB
       AcctLogFileName %L/realmB-%Y%m%d
       SessionDatabase realmB  
       PasswordLogFileName %L/realmB/passlog-%Y%m%d
</Handler> 

# define session database for each Realm

<SessionDatabase DBM>
       Filename %D/online-realmA
       Identifier realmA       
</SessionDatabase> 

<SessionDatabase DBM>
       Filename %D/online-realmB
       Identifier realmB
</SessionDatabase> 


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