I am trying to get this curl statement to work with the backend API. I have not been able to figure out why it is not writing to the EA. The other question is has anyone done this with SSO in place using the JSS failover.
#!/bin/sh
echo "<?xml version="1.0" encoding="UTF-8" standalone="no"?><computer><extension_attributes><attribute><name>${ea_name}</name><value>${ea_value}</value></attribute></extension_attributes></computer>" > /private/tmp/ea.xml
curl -v -d -k -u xxxxx:xxxxx "$JSSName/JSSResource/computerextensionattributes/id/17/$machinename" -T "/private/tmp/ea.xml" -X PUT
