From ddc153ad951d8bf2125bf64f2e06013730f8bee1 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 11 Jun 2012 21:16:05 -0500 Subject: Added scripts for test data. --- scripts/service-add-host.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/service-add-host.sh (limited to 'scripts/service-add-host.sh') diff --git a/scripts/service-add-host.sh b/scripts/service-add-host.sh new file mode 100755 index 0000000..ecc8dfc --- /dev/null +++ b/scripts/service-add-host.sh @@ -0,0 +1,10 @@ +#!/bin/sh +x + +curl\ + -H "Content-Type:application/json"\ + -H "Accept:applicaton/json"\ + --negotiate -u :\ + --cacert /etc/ipa/ca.crt\ + -d '{"method":"service_add_host","params":[["test/dev.example.com@DEV.EXAMPLE.COM"],{"host":"dev.example.com"}],"id":0}'\ + -X POST\ + https://dev.example.com/ipa/json -- cgit