summaryrefslogtreecommitdiffstats
path: root/scripts/sudocmd-find.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/sudocmd-find.sh')
-rwxr-xr-xscripts/sudocmd-find.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/sudocmd-find.sh b/scripts/sudocmd-find.sh
new file mode 100755
index 0000000..eae496c
--- /dev/null
+++ b/scripts/sudocmd-find.sh
@@ -0,0 +1,21 @@
+#!/bin/sh +x
+
+. ./include.sh
+
+json="{
+ \"method\": \"sudocmd_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