diff options
Diffstat (limited to 'scripts/json_metadata.sh')
-rwxr-xr-x | scripts/json_metadata.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/json_metadata.sh b/scripts/json_metadata.sh new file mode 100755 index 0000000..c77387d --- /dev/null +++ b/scripts/json_metadata.sh @@ -0,0 +1,21 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"json_metadata\", + \"params\": [ + [], {} + ], + \"id\": 0 +}" + +curl\ + -H "Content-Type:application/json"\ + -H "Accept:applicaton/json"\ + --delegation always\ + --negotiate -u :\ + --cacert /etc/ipa/ca.crt\ + -d "$json"\ + -X POST\ + $IPA_JSON_URL |