summaryrefslogtreecommitdiffstats
path: root/scripts/entitle-register.sh
blob: f8414f615c46ad3af07466370d106afc9455222c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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