Metadata-Version: 2.4
Name: pgldapsync
Version: 1.0.0
Summary: Synchronise LDAP users to Postgres
Home-page: https://github.com/enterprisedb/pgldapsync
Author: Dave Page
Author-email: dave.page@enterprisedb.com
License: PostgreSQL
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2.7
Classifier: License :: OSI Approved :: PostgreSQL License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ldap3>=2.5.1
Requires-Dist: psycopg2-binary>=2.7.5
Requires-Dist: pyasn1>=0.4.4
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# 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
