(RADIATOR) AccLogFileFormat

Paul Thorton paul.thornton at asiaonline.net
Tue Sep 18 00:27:06 CDT 2001


Hi,

I have set up a new AcctLogFileFormat and was wondering why I am not
getting 2 values back?

AcctLogFileName       /var/log/radius/new.log
AcctLogFileFormat
%{Timestamp}|%{Acct-Session-Id}|%{Acct-Status-Type}|%{User-Name}|%{User-
Password}|%{Class}|%{NAS-IP-Address}|%{NAS-Port}|%{NAS-Port-Type}|%{Fram
ed-Protocol}|%{Framed-IP-Address}|%{Called-Station-Id}|%{Calling-Station
-Id}|%{Ascend-Disconnect-Cause}|%{Acct-Input-Octets}|%{Acct-Output-Octet
s}|%{Acct-Session-Time}|%{Reply:code}

All values are being returned except for:

%{User-Password} <- Any
and
%{Reply:code} <- Access Accept or Reject for example

I can do it in a hook, but the replyhook does not work in <AuthBy File>

I.E.
my $original_packet = ${$_[2]};
my $reply_packet = ${$_[0]};
my $debug_what = $reply_packet->code();   <- Here
my $debug_pwd =
$original_packet->decode_password($original_packet->{Client}->{Secret});

Can someone please help?

Thanks,

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