Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7fc5f1a

Browse files
committed
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.
1 parent 1071861 commit 7fc5f1a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/src/sgml/libpq.sgml

+7-7
Original file line numberDiff line numberDiff line change
@@ -7043,17 +7043,17 @@ version:1
70437043
dn:cn=mydatabase,dc=mycompany,dc=com
70447044
changetype:add
70457045
objectclass:top
7046-
objectclass:groupOfUniqueNames
7046+
objectclass:device
70477047
cn:mydatabase
7048-
uniqueMember:host=dbserver.mycompany.com
7049-
uniqueMember:port=5439
7050-
uniqueMember:dbname=mydb
7051-
uniqueMember:user=mydb_user
7052-
uniqueMember:sslmode=require
7048+
description:host=dbserver.mycompany.com
7049+
description:port=5439
7050+
description:dbname=mydb
7051+
description:user=mydb_user
7052+
description:sslmode=require
70537053
</programlisting>
70547054
might be queried with the following LDAP URL:
70557055
<programlisting>
7056-
ldap://ldap.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=mydatabase)
7056+
ldap://ldap.mycompany.com/dc=mycompany,dc=com?description?one?(cn=mydatabase)
70577057
</programlisting>
70587058
</para>
70597059

0 commit comments

Comments
 (0)