ppipa
PP's FreeIPA Module
PyPI package: ppipa
If you spot any problems or have any improvement ideas then feel free to open an issue and I will be glad to look into it for you.
Installation
A recommended way of installing the tool is pip install.
pip install
The tool is available in PyPI and can be installed using pip:
$ pip install --user ppipa
Usage
from ppipa import FreeIPAServer
ipa = FreeIPAServer(host='ipa01.example.com', bindpw='password')
users = ipa.find_users_by_email(email='first.last@example.com')
n = len(users)
user = ipa.users().get('first.last')
cn = user.cn
is_ldap_group_member = user.is_member_of('ldap_group')