summaryrefslogtreecommitdiffstats
path: root/scripts/metadata.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/metadata.sh')
-rwxr-xr-xscripts/metadata.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/metadata.sh b/scripts/metadata.sh
new file mode 100755
index 0000000..a4c34b4
--- /dev/null
+++ b/scripts/metadata.sh
@@ -0,0 +1,20 @@
+#!/bin/sh +x
+
+. ./include.sh
+
+json="{
+ \"method\": \"json_metadata\",
+ \"params\": [
+ [\"\"], {}
+ ],
+ \"id\": 0
+}"
+curl\
+ -H "Content-Type: application/json"\
+ -H "Accept: applicaton/json"\
+ --delegation always\
+ --negotiate -u :\
+ --cacert /etc/ipa/ca.crt\
+ -d "$json"\
+ -X POST\
+ $IPA_JSON_URL