Posted on 03-04-2013 10:21 PM
I've just spent more time than I'd like to admit, evaluating 3 options in physical location via command line.
In the end LocateMe won for it's quick formatting., but ultimately theres nothing to special about them
If you want to look at the chooses then this link will help:
http://apple.stackexchange.com/questions/60152/is-there-a-way-to-access-a-macs-geolocation-from-terminal-mountain-lion
I'm a little lost on why I can't publish a google static map, of the gathered info, to the EA page. (I spent all day, getting a pretty icon to work and everything...) The comments in the HTML source say that no encoding will be done so that we can publish HTML, but then any "a href" gets removed and any "img src" become useless.
What are my options? Can I run some simple Javascript, or iframe code?
OR is JAMF just sanitizing the EA output for our safety and I need to give it a break?
I'm sorry if this has been answered before, I've been unable to find any references to writing html to the EAs.
Thank you in Advance
Oliver
Posted on 03-06-2013 11:57 AM
So I put in a Feature Request to add this as core functionality to JSS.
https://jamfnation.jamfsoftware.com/featureRequest.html?id=967
Vote it up!
Posted on 03-06-2013 12:23 PM
Well, EAs are designed to submit back a string, integer or date value that can be stored easily in the MySQL db. trying to plug in any html style formatting just isn't going to work, because it wasn't designed with that in mind.
I don't know anything about the Locate Me product, but tou could possibly try manipulating the output the product returns into a Google Maps longitude and latitude coordinates and plug those values back into a URL. The general syntax for that is:
http://maps.google.com/?q=[lat],[long]
So if you can get those 2 values as variables to throw back into a string you can output a URL like:
http://maps.google.com/?q=37.331624,-122.030725
Then you can simply copy/paste that into a browser and see the location.
Posted on 03-06-2013 12:29 PM
Yes, I've voted up that request!
Awesome request, doesn't exactly fix my issue.
I already have the location to the computer, I'd like to publish a GOOGLE Map image via Static Maps API of the Location.
The extension TAB for each computer could show the image or a URL to the image could be provided, but the sanitizing is removing that possibility. Are there any ways we can "tune" the sanitizing.
Posted on 03-06-2013 12:29 PM
duplicate
Posted on 03-06-2013 12:43 PM
I would say you're trying to do something Extension Attributes simply weren't designed to do. They don't display html code. I don't know if it can be hacked to do that in its current version.
FWIW, html code used to be available in some other portions of Casper, such as in Self Service descriptions, and it was removed at the request of customers to prevent any cross site scripting exploits. Its possible the sanitizing is done on purpose for the same reasons.
Posted on 03-06-2013 12:43 PM
mm2270
As you can see the image API requires a very long and unsightly URL string, this isn't practical for normal use.
If we have the ability to publish small html strings then we can achieve this image publishing and open up the possibility of having hyperlinks to other systems that we rely on for the exact assest that we are viewing.
Posted on 03-06-2013 12:49 PM
Can we be given the choose of tuning sanitizing?
I agree we need it, but there are certain exceptions that this customer can accept that, maybe another customer won't.
I'll accept a hack for now if it's possible, but a feature request for future versions will probably have to be written....
Posted on 03-06-2013 12:54 PM
I don't know of a way to tweak that. Maybe someone else does. You can also send this over to your JAMF rep to see if they know of a way I guess.