summaryrefslogtreecommitdiffstats
path: root/scripts/hbac-remove-accesstime1.sh
blob: 1f8e8f7c66cd39e408305f150c3a45178802431d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh +x

. ./include.sh

json="{
    \"method\": \"hbac_remove_accesstime\",
    \"params\": [
        [ \"test\" ],
        {
            \"accesstime\": \"periodic daily 0800-1400\"
        }
    ],
    \"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