[Freeipa-devel] Web services in freeIPA
Alexander Bokovoy
abokovoy at redhat.com
Fri Feb 7 09:45:36 UTC 2014
On Fri, 07 Feb 2014, Alexandre Santos wrote:
>Hi Martin,
>
>I´ve tried your example and i get this error:
>
>curl -v \
> -H "Content-Type:application/json" \
> -H "Accept:applicaton/json"\
> --negotiate -u : \
> --delegation always \
> --cacert /etc/ipa/ca.crt \
> -d '{"method":"user_find","params":[[""],{}],"id":0}' \
> -X POST https://ipa/ipa/json
>
>...
>
>> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.6.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
>> Host: pi
>> Content-Type:application/json
>> Accept:applicaton/json
>> Content-Length: 48
>>
>< HTTP/1.1 200 Success
>< Date: Thu, 06 Feb 2014 16:42:26 GMT
>< Server: Apache/2.2.15 (CentOS)
>< Connection: close
>< Transfer-Encoding: chunked
>< Content-Type: application/json; charset=utf-8
><
>{
> "error": {
> "code": 911,
> "message": "Missing or invalid HTTP Referer, missing",
> "name": {
> "__base64__": "UmVmZXJlckVycm9y"
> }
> },
> "id": null,
> "principal": “admin at ipa",
> "result": null,
> "version": "3.0.0"
>* Closing connection #0
>
>
>Any suggestion?
You need to set the referrer.
-H referer:https://ipa.mybox/ipa/ui/index.html
--
/ Alexander Bokovoy
More information about the Freeipa-devel
mailing list