blob: 497269e09c9378098694180a5a4931097de3e1b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh +x
. ./include.sh
json="{
\"method\": \"delegation_mod\",
\"params\": [
[ \"test\" ],
{
\"attrs\": \"cn,sn\"
}
],
\"id\": 0
}"
# \"attrs\": [
# \"carlicense\",
# \"cn\"
# ],
# \"group\": \"editors\",
# \"memberof\": \"editors\",
# \"permissions\": [
# \"write\"
# ]
# \"all\": 0,
# \"raw\": 0,
# \"version\": \"2.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
|