thejumpcloud / jc-autopkg-importer Goto Github PK
View Code? Open in Web Editor NEWAutoPkg Importer for JumpCloud
License: Apache License 2.0
AutoPkg Importer for JumpCloud
License: Apache License 2.0
{"message":"Unauthorized"}JumpCloud system: xxxxxxxxxxxxxx removed from system group: xxxxxxxxxxxxxxxxx
{"message":"Unauthorized"}JumpCloud system: xxxxxxxxxxxxxx added to post install system
group: xxxxxxxxxxxxxxxxxx
I'm getting this error when the group movement part of the command is executing and I checked the group and it in fact does not get moved
installer: The upgrade was successful.
{"message":"Unauthorized"}JumpCloud system: {id} removed from system group: {id}}
I am using the autogenerated command from the importer, making the following request:
# Get the current time.
now=$(date -u "+%a, %d %h %Y %H:%M:%S GMT")
# create the string to sign from the request-line and the date
signstr="POST /api/v2/systemgroups/${systemGroupID}/members HTTP/1.1\ndate: ${now}"
# create the signature
signature=$(printf "$signstr" | openssl dgst -sha256 -sign /opt/jc/client.key | openssl enc -e -a | tr -d '\n')
curl -s \
-X 'POST' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H "Date: ${now}" \
-H "Authorization: Signature keyId=\"system/${systemID}\",headers=\"request-line date\",algorithm=\"rsa-sha256\",signature=\"${signature}\"" \
-d '{"op": "remove","type": "system","id": "'${systemID}'"}' \
"https://console.jumpcloud.com/api/v2/systemgroups/${systemGroupID}/members"
echo "JumpCloud system: ${systemID} removed from system group: ${systemGroupID}"
Did something with the API change maybe? Any other ideas why this is failing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.