RubyGems Navigation menu

pg-ldap-sync 0.1.1

LDAP is often used for a centralized user and role management in an enterprise environment. PostgreSQL offers different authentication methods, like LDAP, SSPI, GSSAPI or SSL. However, for any method the user must already exist in the database, before the authentication can be used. There is currently no direct authorization of database users on LDAP. So roles and memberships has to be administered twice. This program helps to solve the issue by synchronizing users, groups and their memberships from LDAP to PostgreSQL. Access to LDAP is used read-only. <tt>pg_ldap_sync</tt> issues proper CREATE ROLE, DROP ROLE, GRANT and REVOKE commands to synchronize users and groups. It is meant to be started as a cron job.

          gem 'pg-ldap-sync', '~> 0.1.1'

          gem install pg-ldap-sync

Total downloads 2,128

For this version 1,020

Required Ruby Version: None



  1. 0.1.1 - November 15, 2012 (12.5 KB)
  2. 0.1.0 - July 12, 2011 (12 KB)