From ddc153ad951d8bf2125bf64f2e06013730f8bee1 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 11 Jun 2012 21:16:05 -0500 Subject: Added scripts for test data. --- scripts/hbac-remove-accesstime2.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 scripts/hbac-remove-accesstime2.sh (limited to 'scripts/hbac-remove-accesstime2.sh') diff --git a/scripts/hbac-remove-accesstime2.sh b/scripts/hbac-remove-accesstime2.sh new file mode 100755 index 0000000..26781b9 --- /dev/null +++ b/scripts/hbac-remove-accesstime2.sh @@ -0,0 +1,23 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"hbac_remove_accesstime\", + \"params\": [ + [ \"test\" ], + { + \"accesstime\": \"absolute 201012161032 ~ 201012161033\" + } + ], + \"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 -- cgit