From 6f3079ab0a9dc9d5e0d4e93d11a5a8d310a44a1b Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Mon, 16 Oct 2023 14:52:57 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-7831 Signed-off-by: stephb9959 --- src/RADIUS_Destination.h | 7 ++----- src/RADIUS_proxy_server.cpp | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/RADIUS_Destination.h b/src/RADIUS_Destination.h index 2fdaf3f4..91a1b3d1 100644 --- a/src/RADIUS_Destination.h +++ b/src/RADIUS_Destination.h @@ -125,7 +125,7 @@ namespace OpenWifi { P.PacketType(), NumberOfReceivedBytes)); AP_WS_Server()->SendRadiusAuthenticationData(SerialNumber, Buffer, NumberOfReceivedBytes); - P.Log(std::cout); + // P.Log(std::cout); } else { poco_trace(Logger_, "AUTH packet dropped."); } @@ -133,16 +133,13 @@ namespace OpenWifi { DBGLINE auto SerialNumber = P.ExtractSerialNumberFromProxyState(); if (!SerialNumber.empty()) { - DBGLINE - P.Log(std::cout); +// P.Log(std::cout); poco_trace(Logger_, fmt::format("{}: {} Received {} bytes.", SerialNumber, P.PacketType(), NumberOfReceivedBytes)); AP_WS_Server()->SendRadiusAccountingData(SerialNumber, Buffer, NumberOfReceivedBytes); - DBGLINE } else { - DBGLINE poco_trace(Logger_, "ACCT packet dropped."); } } else if (P.IsAuthority()) { diff --git a/src/RADIUS_proxy_server.cpp b/src/RADIUS_proxy_server.cpp index 4b9b84b7..8710c5be 100644 --- a/src/RADIUS_proxy_server.cpp +++ b/src/RADIUS_proxy_server.cpp @@ -96,6 +96,7 @@ namespace OpenWifi { poco_trace(Logger(),fmt::format("{}: Sending Acct {} bytes to {}", serialNumber, P.Size(), Destination)); if(DestinationServer->second->ServerType()!=GWObjects::RadiusEndpointType::generic) { Secret = DestinationServer->second->Pool().acctConfig.servers[0].secret; + std::cout << "Secret" << Secret << std::endl; if(RecomputeAuthenticator) { DBGLINE P.RecomputeAuthenticator(Secret); @@ -139,7 +140,6 @@ namespace OpenWifi { std::string Secret; RouteAndSendAccountingPacket(Destination, serialNumber, P, false, Secret); RADIUSSessionTracker()->AddAccountingSession(Destination, serialNumber, P, Secret); - } catch (const Poco::Exception &E) { Logger().log(E); } catch (...) {