Python lib for common VPN-related access queries at Mozilla. This abstracts away the (presently LDAP) query layer and prepares for a future where LDAP is replaced by... something else queryable.
fpm -s python -t rpm --rpm-dist "$(rpmbuild -E '%{?dist}' | sed -e 's#^.##')" --iteration 1 iamvpnlibrary/setup.py
Fill in the [testing] subsection of the config file, then `make test`
- python-ldap
- python-netaddr
Login/pass:
import iamvpnlibrary l = iamvpnlibrary.IAMVPNLibrary() print l.user_allowed_to_vpn('[email protected]') print l.does_user_require_vpn_mfa('[email protected]') print l.get_allowed_vpn_ips('[email protected]') print l.get_allowed_vpn_acls('[email protected]')