blob: d9b95456d473be54b2e872b0837c5c42d0e498f5 (
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
|
#!/bin/sh +x
. ./include.sh
json="{
\"method\": \"user_add\",
\"params\": [
[ \"testuser\" ],
{
\"givenname\": \"Test\",
\"sn\": \"User\",
\"telephoneNumber\": \"123-456-7890\",
\"mail\": [
\"testuser@example.com\",
\"test@example.com\"
]
}
],
\"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
|