nordnet / python-freeipa-json

Tiny/basic module for communicating with the FreeIPA API without having to install the entire FreeIPA toolchain
MIT License
53 stars 37 forks source link

python-freeipa-json

Tiny/basic module for communicating with the FreeIPA API without having to install their entire toolchain

Info

This module tries to use a minimal set of dependencies to communicate with FreeIPA through it's json rpc instead of using the official FreeIPA toolchain which is quite dependency heavy. Not all ipa functions has been added yet.

Installation

Use the included setup.py to install or manually copy the ipahttp to your python library directory.

Dependencies

Example usage

import ipahttp

ipa = ipahttp.ipa('ipa.example.com')
ipa.login('apiuser', 'secret_password')
reply = ipa.host_find()
for host in reply['result']['result']:
    print('Found host %s' % host['fqdn'][0])

License

MIT © Nordnet Bank AB