summaryrefslogtreecommitdiffstats
path: root/scripts/delegation-mod.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/delegation-mod.sh')
-rwxr-xr-xscripts/delegation-mod.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/delegation-mod.sh b/scripts/delegation-mod.sh
new file mode 100755
index 0000000..497269e
--- /dev/null
+++ b/scripts/delegation-mod.sh
@@ -0,0 +1,36 @@
+#!/bin/sh +x
+
+. ./include.sh
+
+json="{
+ \"method\": \"delegation_mod\",
+ \"params\": [
+ [ \"test\" ],
+ {
+ \"attrs\": \"cn,sn\"
+ }
+ ],
+ \"id\": 0
+}"
+
+# \"attrs\": [
+# \"carlicense\",
+# \"cn\"
+# ],
+# \"group\": \"editors\",
+# \"memberof\": \"editors\",
+# \"permissions\": [
+# \"write\"
+# ]
+# \"all\": 0,
+# \"raw\": 0,
+# \"version\": \"2.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