From 7c743401559b75a839688273f1c75ead28779a92 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Fri, 25 Nov 2016 12:41:27 +0100 Subject: [PATCH] Added group password support to the Win32 agent. (cherry picked from commit 246b6050765bc230e71d91e5d1119aeed661aee9) --- pandora_agents/win32/pandora_windows_service.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index e2f18755bf..39d78cd150 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -385,6 +385,7 @@ Pandora_Windows_Service::getXmlHeader () { char timestamp[20]; string agent_name, os_name, os_version, encoding, value, xml, address, parent_agent_name, agent_name_cmd; string custom_id, url_address, latitude, longitude, altitude, position_description, gis_exec, gis_result; + string group_password; time_t ctime; struct tm *ctime_tm = NULL; int pos; @@ -477,6 +478,13 @@ Pandora_Windows_Service::getXmlHeader () { xml += "\" url_address=\""; xml += url_address; } + + // Get Url Address + group_password = conf->getValue ("group_password"); + if (group_password != "") { + xml += "\" group_password=\""; + xml += group_password; + } // Get Coordinates gis_exec = conf->getValue ("gis_exec");