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
Metadata
Release files for pgldapsync 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pgldapsync-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pgldapsync-1.0.0-py2.py3-none-any.whl |
Release files / pgldapsync-1.0.0-py2.py3-none-any.whl
| Download URL | pgldapsync-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1cca2692cc035631685af3e1eb52a03170ebe07d30f157100894186116d5cd54
|
|
BLAKE2b-256 checksum How to use checksums |
28ae102369b015b40b24f436bdd37ab0d15c252a532c89f5d71f50711441c02a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
|
Security for pgldapsync 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.