Open-AudIT

What's on your network?
It is currently Sat Jan 20, 2018 6:46 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue Mar 03, 2015 7:25 am 
Offline
Helper

Joined: Wed Apr 07, 2010 8:04 am
Posts: 99
Location: Boston, MA
Is there an Ampersand (&) somewhere on your software lines in the XML? For some reason, which I still don't know, I had a case where OSX cURL was breaking the XML data during POST when it encountered the symbol, even if within it was within CDATA. If you change the XML line to &amp, then curl works. You can test with
Code:
curl --data @"localfile.xml" httpbin.org/post

_________________
OA v1.5.2 on Windows Server 2003 and WAMP 2.0 (Apache 2.2.22, PHP 5.4.3, MySQL 5.1.36).
OA v1.5.3 on Linux
Auditing 500 Windows 7 computers via GPO, 200 Apple OSX 10.8/10.9/10.10


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 09, 2015 5:14 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1933
Location: Brisbane, Australia
I have made some tweaks to the audit_osx.sh for the next version.
It should work fine without an upgraded Open-AudIT.
It's attached for you to try.

The main items were changing
Code:
echo  "form_systemXML=<?xml version="\"1.0\"" encoding="\"UTF-8\""?>" > $xml_file

to
Code:
echo  "<?xml version="\"1.0\"" encoding="\"UTF-8\""?>" > $xml_file


And then adjusting the curl from
Code:
curl --data @"$xml_file" $url

to
Code:
curl --data-urlencode form_systemXML@"$xml_file" $url


Attachments:
File comment: Rename to audit_osx.sh
audit_osx.txt [36.63 KiB]
Downloaded 73 times

_________________
Support and Development hours available from Opmantek.
Please consider a purchase to help make Open-AudIT better for everyone.
Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 10, 2015 7:56 am 
Offline
Helper

Joined: Wed Apr 07, 2010 8:04 am
Posts: 99
Location: Boston, MA
Yes! it works now.

_________________
OA v1.5.2 on Windows Server 2003 and WAMP 2.0 (Apache 2.2.22, PHP 5.4.3, MySQL 5.1.36).
OA v1.5.3 on Linux
Auditing 500 Windows 7 computers via GPO, 200 Apple OSX 10.8/10.9/10.10


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group