forked from micromdm/micromdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added SetRecoveryLock support (micromdm#757)
- Loading branch information
1 parent
30ff25e
commit 1dfa0a8
Showing
15 changed files
with
1,260 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
source $MICROMDM_ENV_PATH | ||
endpoint="v1/commands" | ||
jq -n \ | ||
--arg request_type "SetFirmwarePassword" \ | ||
--arg udid "$1" \ | ||
--arg current_password $2 \ | ||
--arg new_password $3 \ | ||
--arg request_requires_network_tether $4 \ | ||
--arg allow_oroms $5 \ | ||
'.udid = $udid | ||
|.current_password = $current_password | ||
|.new_password = $new_password | ||
|.request_requires_network_tether = $request_requires_network_tether | ||
|.allow_oroms = $allow_oroms | ||
|.request_type = $request_type | ||
'|\ | ||
curl $CURL_OPTS -K <(cat <<< "-u micromdm:$API_TOKEN") "$SERVER_URL/$endpoint" -d@- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
source $MICROMDM_ENV_PATH | ||
endpoint="v1/commands" | ||
jq -n \ | ||
--arg request_type "SetRecoveryLock" \ | ||
--arg udid "$1" \ | ||
--arg current_password $2 \ | ||
--arg new_password $3 \ | ||
--arg request_requires_network_tether $4 \ | ||
--arg allow_oroms $5 \ | ||
'.udid = $udid | ||
|.current_password = $current_password | ||
|.new_password = $new_password | ||
|.request_requires_network_tether = $request_requires_network_tether | ||
|.allow_oroms = $allow_oroms | ||
|.request_type = $request_type | ||
'|\ | ||
curl $CURL_OPTS -K <(cat <<< "-u micromdm:$API_TOKEN") "$SERVER_URL/$endpoint" -d@- |
Oops, something went wrong.