Skip to content
/ ldap2pg Public
forked from dalibo/ldap2pg

🐘 ☎️ Synchronize PostgreSQL roles from LDAP

License

Notifications You must be signed in to change notification settings

cuulee/ldap2pg

 
 

Repository files navigation

ldap2pg -- Synchronize Postgres roles from LDAP

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.

About

🐘 ☎️ Synchronize PostgreSQL roles from LDAP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.9%
  • Shell 6.5%
  • Makefile 0.6%