Skip to main content

Synchronise LDAP users to Postgres

Project description

pgldapsync

This Python module allows you to synchronise Postgres login roles with users in an LDAP directory.

In order to use it, you will need to create a config.ini file containing the site-specific configuration you require. See config.ini.example for a complete list of all the available configuration options. This file should be copied to create your own configuration.

Once configured, simply run pgldapsync like so:

python pgldapsync.py /path/to/config.ini

In order to test the configuration (and dump the SQL that would be executed to stdout), run it like this:

python pgldapsync.py --dry-run /path/to/config.ini

Creating a virtual environment for dev/test

Assuming you have the virtualenv package installed:

venv pgldapsync
source pgldapsync/bin/activate.sh
pip install -r requirements.txt

Adapt the first command as required for your environment/Python version.

Creating a package

To create a package (wheel), run the following in your virtual environment:

python setup.py sdist bdist_wheel --universal

Copyright 2018 - 2021, EnterpriseDB Corporation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pgldapsync-1.0.0-py2.py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page