diff options
Diffstat (limited to 'scripts/group-add.sh')
-rwxr-xr-x | scripts/group-add.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/group-add.sh b/scripts/group-add.sh new file mode 100755 index 0000000..c8a4b03 --- /dev/null +++ b/scripts/group-add.sh @@ -0,0 +1,24 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"group_add\", + \"params\": [ + [ \"testgroup\" ], + { + \"description\": \"Test Group\", + \"user\": \"testuser\" + } + ], + \"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 |