summaryrefslogtreecommitdiffstats
path: root/scripts/hbac-find.sh
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2012-06-11 21:16:05 -0500
committerEndi S. Dewata <edewata@redhat.com>2012-06-11 21:16:05 -0500
commitddc153ad951d8bf2125bf64f2e06013730f8bee1 (patch)
tree3ebaeffe018933983a173d4f1959d21831d38757 /scripts/hbac-find.sh
parent27bdba4f594cbdedfb5881e7e52d5fb6d97e794b (diff)
downloadfreeipa-dev-ddc153ad951d8bf2125bf64f2e06013730f8bee1.tar.gz
freeipa-dev-ddc153ad951d8bf2125bf64f2e06013730f8bee1.tar.xz
freeipa-dev-ddc153ad951d8bf2125bf64f2e06013730f8bee1.zip
Added scripts for test data.
Diffstat (limited to 'scripts/hbac-find.sh')
-rwxr-xr-xscripts/hbac-find.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/hbac-find.sh b/scripts/hbac-find.sh
new file mode 100755
index 0000000..88ccabc
--- /dev/null
+++ b/scripts/hbac-find.sh
@@ -0,0 +1,21 @@
+#!/bin/sh +x
+
+. ./include.sh
+
+json="{
+ \"method\": \"hbac_find\",
+ \"params\": [
+ [ \"\" ],
+ { }
+ ],
+ \"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