Synchronize PostgreSQL roles from LDAP
Project description
Swiss-army knife to synchronize Postgres roles from any LDAP directory.
Features
Creates and drops PostgreSQL roles from LDAP queries.
Manage role options (CREATE and ALTER).
Manage role members (alias groups).
Dry run.
logs LDAP queries as ldapsearch commands.
logs every SQL queries.
Reads settings from YAML config file.
$ cat ldap2pg.yml sync_map: ldap: base: ou=people,dc=ldap2pg,dc=local filter: "(objectClass=organizationalRole)" attribute: cn role: name_attribute: cn $ ldap2pg INFO Starting ldap2pg 0.1. INFO Creating new role alice. WARNI Dropping existing role toto. INFO Synchronization complete. $
See versionned ldap2pg.yml for further options.
Installation
Install it from GitHub tarball:
pip install https://github.com/dalibo/ldap2pg/archive/master.zip
ldap2pg is licensed under PostgreSQL license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ldap2pg-1.0a1.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for ldap2pg-1.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bddcb33bf54d7fcd0b6fda953d218d6e008d54cb48cf8cf6093bf16d4baa7c7 |
|
MD5 | a0e895cd2c71e88cb36855ed19421c4e |
|
BLAKE2b-256 | 54554e515fa1025d74f515e94ceb501e3f2bc6d6ed9c2c9b33bdea6a5dbc5f5c |