cbergmann / privacyidea-ldap-proxy

:evergreen_tree: LDAP Proxy to intercept LDAP binds and authenticate against privacyIDEA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

privacyidea-ldap-proxy

ldap-proxy is implemented as a twistd plugin.

Installation

It is recommended to install ldap-proxy inside a virtualenv.

virtualenv2 venv
. ./venv/bin/activate
pip install -r requirements.txt
pip install .

If you wish to develop ldap-proxy, you could instead install it in "editable mode" using

pip install -e .

Configuration

ldap-proxy is configured via a configuration file. See example-proxy.ini as an example.

Running

ldap-proxy can be run in the foreground as follows:

twistd -n ldap-proxy -c config.ini

twistd can be used to configure, e.g., logging and daemonizing. Refer to its documentation for more information.

deploy/ contains an exemplary systemd service file.

Testing

Unit tests are implemented using Trial, which is part of Twisted. They can be run using:

trial pi_ldapproxy.test

There are also a number of client-side scenarios implemented in the scenarios/ directory.

About

:evergreen_tree: LDAP Proxy to intercept LDAP binds and authenticate against privacyIDEA

License:GNU Affero General Public License v3.0


Languages

Language:Python 97.9%Language:Makefile 1.6%Language:Shell 0.4%