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