(RADIATOR) How to detect used AuthBy while processing Account ing

Frank Danielson fdanielson at dataonair.com
Thu Jan 30 12:01:18 CST 2003


You could return a value in the Class attribute during the AuthBy and then
have a Handler use that value to do the Accounting. Something like this:
 
# Authentications 
<AuthBy SQL>
    Identifier auth1
    AddToReply Class="auth1"
</AuthBy> 
<AuthBy SQL>
    Identifier auth2
    AddToReply Class="auth2"
</AuthBy> 
<AuthBy SQL>
    Identifier auth3
    AddToReply Class="auth2"
</AuthBy>
 
# Accounting
<AuthBy SQL>
    Identifier acct1
</AuthBy> 
<AuthBy SQL>
    Identifier acct2
</AuthBy> 
<AuthBy SQL>
    Identifier acct3
</AuthBy>
 
# Handlers
<Handler Request-Type = Accounting-Request, Class = auth1>

    AuthBy acct1
</Handler>
 
<Handler Request-Type = Accounting-Request, Class = auth1>

    AuthBy acct1
</Handler>
 
<Handler>
    AuthByPolicy ContinueUntilAccept
    AuthBy auth1
    AuthBy auth2
    AuthBy auth3
</Handler>
 
Frank Danielson
[Infrastructure Architect]
 
wireless: 407.467.7832
wireline: 407.515.8633
 
Data On Air
301 E. Pine St. Suite 450
Orlando, Fl 32801
http://www.dataonair.com <http://www.dataonair.com/> 

-----Original Message-----
From: Oscar L. Garzón [mailto:ogarzon at andinet.com]
Sent: Thursday, January 30, 2003 12:08 PM
To: radiator at open.com.au
Subject: (RADIATOR) How to detect used AuthBy while processing Accounting


Hello, 
 
I need to authenticate users from different databases without using a realm,
or anything else that could differenciate when a user exists in two
databases... So I use three AuthBy sentences for authentication expecting
that a user will authenticate if his pair username/password matches one of
the databases (the first one taht matches).
 
This works Ok for authentication, and users with the same username can login
no matter what database are coming from, however, I need a similar behavior
for accounting processing, I mean, if user was authenticated using
identifier auth2, its accounting records must go to acct2, but it doesn't
work that fine, It seems like accounting handler can`t differenciate what
authentication mehtod was used to authenticate, son depending on the
authpolicy used in the accounting handlers, it will store record in the
first database or in they all, and that's pretty far from what I want...
 
Any idea?
 
This is the escenario
 
 





 # Authentications 
<AuthBy SQL>
    Identifier auth1
</AuthBy> 
<AuthBy SQL>
    Identifier auth2
</AuthBy> 
<AuthBy SQL>
    Identifier auth3
</AuthBy>
 
# Accounting
<AuthBy SQL>
    Identifier acct1
</AuthBy> 
<AuthBy SQL>

    Identifier acct2
</AuthBy> 
<AuthBy SQL>

    Identifier acct3
</AuthBy>
 
# Handlers
<Handler Request-Type = Accounting-Request>
    AuthByPolicy ContinueAlways
    AuthBy acct1
    AuthBy acct2
    AuthBy acct3
</Handler>
 
<Handler>
    AuthByPolicy ContinueUntilAccept
    AuthBy auth1
    AuthBy auth2
    AuthBy auth3
</Handler>
 
 
-
 
OSCAR LEONARDO GARZON. [  <mailto:ogarzon at andinet.com> ogarzon at andinet.com ]
Andinet on Line - División de Proyectos Especiales
Tel. +57(1)6004330. Fax. +57(1)6004370 
 <http://www.andinet.com/> http://www.andinet.com. 
Bogotá, Colombia 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20030130/ac495b29/attachment.html>


More information about the radiator mailing list