diff options
Diffstat (limited to 'scripts/user-del.sh')
-rwxr-xr-x | scripts/user-del.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/user-del.sh b/scripts/user-del.sh new file mode 100755 index 0000000..2449026 --- /dev/null +++ b/scripts/user-del.sh @@ -0,0 +1,22 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"user_del\", + \"params\": [ + [ \"testuser\" ], + { } + ], + \"id\": 0 +}" + +curl\ + -H "Content-Type:application/json"\ + -H "Accept:applicaton/json"\ + --delegation always\ + --negotiate -u :\ + --cacert /etc/ipa/ca.crt\ + -d "$json"\ + -X POST\ + $IPA_JSON_URL |