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.

installgem install pg-ldap-sync

Lars Kanis

2,050 total downloads 968 for this version


gem 'pg-ldap-sync', '~> 0.1.1'
  1. 0.1.1 November 15, 2012 (12.5 KB)
  2. 0.1.0 July 12, 2011 (12 KB)