#!/bin/sh +x . ./include.sh json="{ \"method\": \"sudorule_mod\", \"params\": [ [ \"test\" ], { \"description\": \"Test Rule\", \"usercategory\": \"all\", \"hostcategory\": \"all\", \"cmdcategory\": \"all\", \"ipasudorunasusercategory\": \"all\", \"ipasudorunasgroupcategory\": \"all\", \"all\": true, \"rights\": 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