Re: [Freeipa-devel] Web services in freeIPA

2014-02-10 Thread Alexandre Santos
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 asan...@uc.pt wrote: Thanks, i´m new to this json.

Re: [Freeipa-devel] Web services in freeIPA

2014-02-10 Thread Martin Kosek
As this is not documented, I am thinking the easiest approach will be to open Web UI and see what JSON requests it sends to IPA for desired actions. I tested that for example with Chrome developer tools and I could easily see that for showing a particular user it uses following JSON:

Re: [Freeipa-devel] Web services in freeIPA

2014-02-10 Thread Adam Young
On 02/07/2014 04:33 AM, 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 \

Re: [Freeipa-devel] Web services in freeIPA

2014-02-08 Thread Petr Vobornik
On 7.2.2014 10:33, 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 \

Re: [Freeipa-devel] Web services in freeIPA

2014-02-07 Thread Alexandre Santos
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

Re: [Freeipa-devel] Web services in freeIPA

2014-02-07 Thread Alexander Bokovoy
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

Re: [Freeipa-devel] Web services in freeIPA

2014-02-06 Thread Petr Vobornik
On 6.2.2014 15:22, Alexandre Santos wrote: Hi, I´m starting in freeIPA and I would like to know what web apps are available for use, like create user, delete user and so on. I´ve seen that when i use the command ipa -vv user-add” a url for the app if given. I would like to know if there is

Re: [Freeipa-devel] Web services in freeIPA

2014-02-06 Thread Alexandre Santos
Thanks, I think I have what i need. Best regards On 06 Feb 2014, at 14:33, Petr Vobornik pvobo...@redhat.com wrote: On 6.2.2014 15:22, Alexandre Santos wrote: Hi, I´m starting in freeIPA and I would like to know what web apps are available for use, like create user, delete user and so

Re: [Freeipa-devel] Web services in freeIPA

2014-02-06 Thread Alexandre Santos
Is there any examples that can guide me. Thanks Alexandre Santos On 06 Feb 2014, at 14:33, Petr Vobornik pvobo...@redhat.com wrote: On 6.2.2014 15:22, Alexandre Santos wrote: Hi, I´m starting in freeIPA and I would like to know what web apps are available for use, like create user,

Re: [Freeipa-devel] Web services in freeIPA

2014-02-06 Thread Martin Kosek
As Petr said, we do not have a proper documentation for using RPC for controlling IPA. But I think you can start with looking at [1] to see the template and try running our commands with -vv which will show you how we call the API: $ ipa -vv user-show admin Martin [1]

Re: [Freeipa-devel] Web services in freeIPA

2014-02-06 Thread Dmitri Pal
On 02/06/2014 10:12 AM, Martin Kosek wrote: As Petr said, we do not have a proper documentation for using RPC for controlling IPA. But I think you can start with looking at [1] to see the template and try running our commands with -vv which will show you how we call the API: $ ipa -vv

Re: [Freeipa-devel] Web services in freeIPA

2014-02-06 Thread Martin Kosek
On 02/06/2014 04:29 PM, Dmitri Pal wrote: On 02/06/2014 10:12 AM, Martin Kosek wrote: As Petr said, we do not have a proper documentation for using RPC for controlling IPA. But I think you can start with looking at [1] to see the template and try running our commands with -vv which will show