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