summaryrefslogtreecommitdiffstats
path: root/scripts/aci-add.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/aci-add.sh')
-rwxr-xr-xscripts/aci-add.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/aci-add.sh b/scripts/aci-add.sh
new file mode 100755
index 0000000..a8a865b
--- /dev/null
+++ b/scripts/aci-add.sh
@@ -0,0 +1,14 @@
+#!/bin/sh +x
+
+curl\
+ -H "Content-Type:application/json"\
+ -H "Accept:applicaton/json"\
+ --negotiate -u :\
+ --cacert /etc/ipa/ca.crt\
+ -d '{"method":"user_add","params":[["test"],{
+ "givenname":"Test",
+ "sn":"User",
+ "telephoneNumber":"123-456-7890"
+ }],"id":0}'\
+ -X POST\
+ https://dev.example.com/ipa/json