(RADIATOR) [SOLVED] Reply-Message in Access-Accept

Pavel A Crasotin pavel at ctk.ru
Thu Aug 3 04:01:03 CDT 2006


Sorry =)
Problem is solved.

Right AuthLog clause is
<AuthLog FILE>
    Identifier          ISGServiceLog
    Filename            %L/isg_service%Y%m%d.pwd
    SuccessFormat       %l:%n:%{Service-Info}:%{Reply:Reply-Message}:OK
    FailureFormat       %l:%n:%{Service-Info}:FAIL:%1
    LogSuccess          1
    LogFailure          1
</AuthLog>


PAC> Hello Hugh and Mike -

PAC> I would like to log some data from Access-Accept packet to AuthLog.
PAC> Is it possible?

PAC> I'm using AuthPLSQL to authenticate PPPoE/PPTP subscribers.
PAC> When the subscriber is authenticated time and volume quota are
PAC> assigned to it.
PAC> And I would like to see these quotas in log file.
PAC> I put quotas in Reply-Message.

PAC> AuthPLSQL returns something like this:
PAC> Code:       Access-Accept
PAC> Identifier: 83
PAC> Authentic: 
PAC> <194><202><189><230><210><131><130>X<253><209>E<222><130><133>"q
PAC> Attributes:
PAC>         Service-Type = 2
PAC>         Framed-MTU = 1476
PAC>         Framed-Compression = 1
PAC>         Cisco-Avpair = "ip:addr-pool=Client"
PAC>         Account-Info = "NDial_Up_VM"
PAC>         Control-Info = "QV52396609"
PAC>         Control-Info = "QT216309"
PAC>         Reply-Message = "QV52396609/QT216309"
PAC>         Framed-Protocol = 1

PAC> The AuthLog clause is:
PAC> <AuthLog FILE>
PAC>     Identifier          ISGServiceLog
PAC>     Filename            %L/isg_service%Y%m%d.pwd
PAC>     SuccessFormat       %l:%n:%{Service-Info}:%1:OK
PAC>     FailureFormat       %l:%n:%{Service-Info}:FAIL:%1
PAC>     LogSuccess          1
PAC>     LogFailure          1
PAC> </AuthLog>

PAC> But the logfile contains:
PAC> Thu Aug  3 12:26:53 2006:testvm:NDial_Up_VM::OK

PAC> Should I change code of AuthPLSQL module to solve my little problem or
PAC> it can be done only in core RADIATOR code?

PAC> --
PAC> With respect,
PAC> Pavel A Crasotin
PAC> OJSC SeverTransCom
PAC> Tel: +7 (0852) 58-41-03, 58-01-01
PAC> Fax: +7 (0852) 58-01-01


PAC> --
PAC> Archive at http://www.open.com.au/archives/radiator/
PAC> Announcements on radiator-announce at open.com.au
PAC> To unsubscribe, email 'majordomo at open.com.au' with
PAC> 'unsubscribe radiator' in the body of the message.



--
With respect,
Pavel A Crasotin
OJSC SeverTransCom
Tel: +7 (4852) 58-41-03, 58-01-01
Fax: +7 (4852) 58-01-01


--
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