summaryrefslogtreecommitdiffstats
path: root/scripts/rolegroup-add.sh
blob: d46aefcce2a4071595ed32306f22ef9280909a17 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh +x

curl\
  -H "Content-Type:application/json"\
  -H "Accept:applicaton/json"\
  --negotiate -u :\
  --cacert /etc/ipa/ca.crt\
  -d '{"method":"rolegroup_add","params":[["test"],{"description":"Test role"}],"id":0}'\
  -X POST\
  https://dev.example.com/ipa/json