Skip to content

ldap2_fdw

Experimental writable LDAP foreign data wrapper

pg_ldap_fdw2 · Experimental writable LDAP foreign data wrapper

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102234ldap2_fdwpg_ldap_fdw21.0FDWC
Relationships
Requiresuuid-ossp

Usage

Sources:

ldap2_fdw 1.0 maps LDAP entries to foreign tables and supports writes. The author explicitly warns against production use because testing, memory management and error handling remain incomplete.

Core Workflow

CREATE EXTENSION "uuid-ossp";
CREATE EXTENSION ldap2_fdw;
CREATE SERVER ldap_directory FOREIGN DATA WRAPPER ldap2_fdw
    OPTIONS (uri 'ldap://localhost');

Operational Boundaries

The official setup creates uuid-ossp first; generated import definitions can use uuid_generate_v4(). Set the server uri, user-mapping username and password, and table basedn, filter and scope for the actual directory. Keep credentials in the user mapping and grant access deliberately. LDAP entries do not always map cleanly to relations, server size limits can truncate results, and remote filtering is limited to a single DN predicate without other conditions. Installation defaults to superuser-only. No supported PostgreSQL-major range or standalone license is declared.

Table reader