[Freeipa-devel] Web services in freeIPA

Alexandre Santos asantos at uc.pt
Mon Feb 10 09:13:01 UTC 2014


I have to install the new version, I have the 3.2 installed. 

I have to integrate the web apps to my web administration site, so i can add, remove, update and find users. 

Thanks

Alexandre Santos

On 07 Feb 2014, at 15:15, Alexandre Santos <asantos at uc.pt> wrote:

> Thanks, i´m new to this json. How can i find the methods available and there options? 
> 
> Thanks
> 
> Alexandre Santos
> 
> 
> On 07 Feb 2014, at 09:45, Alexander Bokovoy <abokovoy at redhat.com> wrote:
> 
>> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140210/2741f199/attachment.htm>


More information about the Freeipa-devel mailing list