"Initialise the IPA API" a link for documentation on that please. What modules 
do I install into my python environment? And are there package dependencies? 
I've been looking for this for a while, Google hasn't found it for me yet.

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Alexander Bokovoy <aboko...@redhat.com>
Sent: Monday, November 6, 2017 8:08:23 PM
To: FreeIPA users list
Cc: Aaron Hicks
Subject: Re: [Freeipa-users] Re: Searching for user by extended attribute

On ma, 06 marras 2017, Aaron Hicks via FreeIPA-users wrote:
>Ah, another point of difference is that I'm using this module to communicate
>with the API https://github.com/opennode/python-freeipa
This is not something freeIPA team has developed. If you are seeing
issues with that module, direct your questions to an author of the
module.

>I've not found any documentation for using any Python modules provided by
>FreeAPI itself in standalone python scripts, rather than via the ipa
>console...
Look into /usr/bin/ipa itself. It is very small python module that
initializes IPA API and then uses it pretty much in the same way as
you'd use 'ipa console'.

We do not yet officially support using IPA Python modules directly, thus
there is no external documentation for that. Our "API" is JSON-RPC
communication that can be introspected in Web UI and by using 'ipa -vvv'
option when using IPA command line.

For example, 'ipa -vvv user-show admin --all' would produce following
JSON-RPC payload:
ipa: INFO: Request: {
    "id": 0,
    "method": "user_show/1",
    "params": [
        [
            "admin"
        ],
        {
            "all": true,
            "version": "2.215"
        }
    ]
}

As you can see, "all" uses boolean 'true' in JSON.


--
/ Alexander Bokovoy
_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org

Reply via email to