diff options
Diffstat (limited to 'scripts/entitle-register.sh')
-rwxr-xr-x | scripts/entitle-register.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/entitle-register.sh b/scripts/entitle-register.sh new file mode 100755 index 0000000..f8414f6 --- /dev/null +++ b/scripts/entitle-register.sh @@ -0,0 +1,25 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"entitle_register\", + \"params\": [ + [ \"admin\" ], + { + \"all\": true, + \"password\": \"admin\", + \"ipaentitlementid\": \"4a8a601a-1cf1-4484-868c-c4cfacfdffed\" + } + ], + \"id\":0 +}" + +curl\ + -H "Content-Type: application/json"\ + -H "Accept: applicaton/json"\ + --negotiate -u :\ + --cacert /etc/ipa/ca.crt\ + -d "$json"\ + -X POST\ + $IPA_JSON_URL |