diff options
Diffstat (limited to 'scripts/hbac-add-accesstime1.sh')
-rwxr-xr-x | scripts/hbac-add-accesstime1.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/hbac-add-accesstime1.sh b/scripts/hbac-add-accesstime1.sh new file mode 100755 index 0000000..68dad7e --- /dev/null +++ b/scripts/hbac-add-accesstime1.sh @@ -0,0 +1,23 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"hbac_add_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 |