Tiny/basic module for communicating with the FreeIPA API without having to install their entire toolchain
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.
Use the included setup.py to install or manually copy the ipahttp to your python library directory.
- requests
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])
MIT © Nordnet Bank AB