Extend lftools with scripts for ldap lookups
Add 2 new commands to lftools:
- infofile
- ldap
prereqs:
For ldap lookups to work you must be on the VPN and have the cert
to get the cert: log in to any collab system and grab /etc/ipa/ca.crt
in /etc/openldap/ldap.conf
TLS_REQCERT always
TLS_CACERTDIR /etc/openldap/certs
TLS_CACERT /etc/openldap/certs/ca.crt
To test:
1. Clone this patchset
2. start venv
pip uninstall lftools && pip install -e .
Usage:
$ lftools ldap
Usage: lftools ldap [OPTIONS] COMMAND [ARGS]...
LDAP TOOLS.
Commands:
autocorrectinfofile Verify INFO.yaml against LDAP group.
csv Query an Ldap server.
inactivecommitters Check committer participation.
yaml4info Build yaml of commiters for your INFO.yaml.
$ lftools infofile
Usage: lftools infofile [OPTIONS] COMMAND [ARGS]...
INFO.yaml TOOLS.
Commands:
get-committers Extract Committer info from INFO.yaml or LDAP...
sync-committers Script to insert missing values from ldap...
Issue: RELENG-407
Change-Id: I4f4055441042d790008754bb085447f52e1c1a78
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>