diff options
Diffstat (limited to 'scripts/delegation-show.sh')
-rwxr-xr-x | scripts/delegation-show.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/delegation-show.sh b/scripts/delegation-show.sh new file mode 100755 index 0000000..354673a --- /dev/null +++ b/scripts/delegation-show.sh @@ -0,0 +1,23 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"delegation_show\", + \"params\": [ + [ \"test\" ], + { + \"all\": true + } + ], + \"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 |