[RADIATOR] Log all request and reply attributes
Alexander.Hartmaier at t-systems.com
Alexander.Hartmaier at t-systems.com
Mon Dec 5 16:35:56 UTC 2022
Thanks Hugh!
Now the last missing part is a method I can call on $p and $rp to get a list of human-readable attribute/value pairs for both.
I haven't found the code that generates the trace output.
Thanks, Alex
T-SYSTEMS AUSTRIA GESMBH
PU Cyber Security
Network Architecture
Operation Manager Authentication
Rennweg 97-99, A-1030 Vienna
+43 57057 4320 (phone)
+43 676 8642 4320 (mobile)
E-mail: alexander.hartmaier at t-systems.com
Internet: www.t-systems.at
Blog: blog.t-systems.at
Social Media: Facebook, Linkedin, Twitter
BIG CHANGES START SMALL – CONSERVE RESOURCES BY NOT PRINTING EVERY E-MAIL.
****************************************************************************************************************
T-Systems Austria GesmbH, Rennweg 97-99, A-1030 Vienna
Commercial Court Vienna, FN 79340b
****************************************************************************************************************
Notice: This transmittal and/or attachments may be privileged or confidential. It is
intended solely for the addressee named above. If you received this transmittal in error,
please notify us immediately by reply and delete this message and all its attachments.
Thank you.
****************************************************************************************************************
________________________________
Von: Hugh Irvine <hugh at irvine.com.au>
Gesendet: Freitag, 2. Dezember 2022 01:41
An: Hartmaier, Alexander <alexander.hartmaier at t-systems.com>
Cc: radiator at lists.open.com.au <radiator at lists.open.com.au>
Betreff: Re: [RADIATOR] Log all request and reply attributes
Hello Alexander -
There is a pointer to the reply packet in the received packet:
Here is an example from Radius/Configurable.pm:
my $rp_code = $p->{rp}->code();
So yes, $p is a pointer to the decoded current request, and $rp is a pointer to the reply packet that is being prepared.
hope that helps
Hugh
> On 30 Nov 2022, at 01:40, Alexander Hartmaier via radiator <radiator at lists.open.com.au> wrote:
>
> Hi,
> I'm looking for a way to include all request and reply attributes in our JSON log which is generated via a LogFormatHook.
>
> $p is passed to it and described as 'Reference to the current request' in the docs but not which methods it has.
> In AuthBy LDAP2 the PostSearchHook also gets passed a $rp for the reply packet but not to LogFormatHook.
>
> Is there a supported way to get at this list?
>
> The output should be a list of key/value pairs of all human-readable attributes and their values.
>
> Thanks, Alex
>
> T-SYSTEMS AUSTRIA GESMBH
> PU Cyber Security
> Network Architecture
> Operation Manager Authentication
> Rennweg 97-99, A-1030 Vienna
> +43 57057 4320 (phone)
> +43 676 8642 4320 (mobile)
> E-mail: alexander.hartmaier at t-systems.com
> Internet: www.t-systems.at<http://www.t-systems.at>
> Blog: blog.t-systems.at
> Social Media: Facebook, Linkedin, Twitter
>
> BIG CHANGES START SMALL – CONSERVE RESOURCES BY NOT PRINTING EVERY E-MAIL.
>
> ****************************************************************************************************************
> T-Systems Austria GesmbH, Rennweg 97-99, A-1030 Vienna
> Commercial Court Vienna, FN 79340b
> ****************************************************************************************************************
> Notice: This transmittal and/or attachments may be privileged or confidential. It is
> intended solely for the addressee named above. If you received this transmittal in error,
> please notify us immediately by reply and delete this message and all its attachments.
> Thank you.
> ****************************************************************************************************************
> _______________________________________________
> radiator mailing list
> radiator at lists.open.com.au
> https://lists.open.com.au/mailman/listinfo/radiator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.open.com.au/pipermail/radiator/attachments/20221205/7befe41b/attachment.html>
More information about the radiator
mailing list