diff options
Diffstat (limited to 'scripts/user-mod.sh')
-rwxr-xr-x | scripts/user-mod.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/user-mod.sh b/scripts/user-mod.sh new file mode 100755 index 0000000..2b43018 --- /dev/null +++ b/scripts/user-mod.sh @@ -0,0 +1,27 @@ +#!/bin/sh +x + +. ./include.sh + +json="{ + \"method\": \"user_mod\", + \"params\": [ + [ \"testuser\" ], + { + \"givenname\": \"Testing\", + \"mail\": [ + \"test3@example.com\", + \"test4@example.com\" + ] + } + ], + \"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 |