From: Noah Misch Date: Tue, 19 Aug 2014 02:58:57 +0000 (-0400) Subject: Make pg_service.conf sample LDIF more portable. X-Git-Tag: REL9_5_ALPHA1~1604 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fc5f1a3550ca9395051b592df150de79804131a;p=postgresql Make pg_service.conf sample LDIF more portable. The aboriginal sample placed connection parameters in groupOfUniqueNames/uniqueMember. OpenLDAP, at least as early as version 2.4.23, rejects uniqueMember entries that do not conform to the syntax for a distinguished name. Use device/description, which is free-form. Back-patch to 9.4 for web site visibility. --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index db634a87df..ef45fbf1fc 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -7043,17 +7043,17 @@ version:1 dn:cn=mydatabase,dc=mycompany,dc=com changetype:add objectclass:top -objectclass:groupOfUniqueNames +objectclass:device cn:mydatabase -uniqueMember:host=dbserver.mycompany.com -uniqueMember:port=5439 -uniqueMember:dbname=mydb -uniqueMember:user=mydb_user -uniqueMember:sslmode=require +description:host=dbserver.mycompany.com +description:port=5439 +description:dbname=mydb +description:user=mydb_user +description:sslmode=require might be queried with the following LDAP URL: -ldap://ldap.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=mydatabase) +ldap://ldap.mycompany.com/dc=mycompany,dc=com?description?one?(cn=mydatabase)