Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 803 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 803 Bytes

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

  • requests

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