Synchronize PostgreSQL roles from LDAP
Project description
Swiss-army knife to synchronize Postgres roles from any LDAP directory.
Features
Creates, alter and drops PostgreSQL roles from LDAP queries.
Creates static roles from YAML to complete LDAP entries.
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 options: LOGIN $ ldap2pg --real Using ./ldap2pg.yml. Starting ldap2pg 1.0a2. Running in real mode. Inspecting Postgres... Querying LDAP cn=people,dc=ldap2pg,dc=local... Create bar. Create baz. Create bob. Create foo. Update options of alice. Drop spurious. Synchronization complete. $
See versionned ldap2pg.yml for further options.
Installation
Install it from PypI tarball:
pip install ldap2pg
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.0b1.tar.gz
(10.5 kB
view details)
Built Distribution
File details
Details for the file ldap2pg-1.0b1.tar.gz
.
File metadata
- Download URL: ldap2pg-1.0b1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2d50d40349dc986cb1faf4510437bc8bb71438d489a74a6d7829001fd761c1d |
|
MD5 | 9d8cea918cab014181460b6a53711bbc |
|
BLAKE2b-256 | ea6ab9f79a4970432c4f6630a46c89eb1a67a4c2616deedf092715f588304ec9 |
File details
Details for the file ldap2pg-1.0b1-py2.py3-none-any.whl
.
File metadata
- Download URL: ldap2pg-1.0b1-py2.py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0a55f22bddf9bab831b24c897dbdf0119be703ad53885c03ae61dd1e641604 |
|
MD5 | 94c32274cfdb7998f13f60df2a9ef159 |
|
BLAKE2b-256 | c66ed5ac0474e8823f301a47f0981a9c909015d122b660f07fa8ebb0caf335c6 |