summaryrefslogtreecommitdiffstats
path: root/scripts/permission-find.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/permission-find.sh')
-rwxr-xr-xscripts/permission-find.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/permission-find.sh b/scripts/permission-find.sh
new file mode 100755
index 0000000..a7f1f93
--- /dev/null
+++ b/scripts/permission-find.sh
@@ -0,0 +1,24 @@
+#!/bin/sh +x
+
+. ./include.sh
+
+json="{
+ \"method\": \"permission_find\",
+ \"params\": [
+ [ ],
+ {
+ \"all\": true,
+ \"rights\": true
+ }
+ ],
+ \"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