mirror of
https://github.com/postgres/postgres.git
synced 2025-05-15 19:15:29 +03:00
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.
This commit is contained in:
parent
a611d2afb0
commit
48e0b5ff37
@ -7043,17 +7043,17 @@ version:1
|
|||||||
dn:cn=mydatabase,dc=mycompany,dc=com
|
dn:cn=mydatabase,dc=mycompany,dc=com
|
||||||
changetype:add
|
changetype:add
|
||||||
objectclass:top
|
objectclass:top
|
||||||
objectclass:groupOfUniqueNames
|
objectclass:device
|
||||||
cn:mydatabase
|
cn:mydatabase
|
||||||
uniqueMember:host=dbserver.mycompany.com
|
description:host=dbserver.mycompany.com
|
||||||
uniqueMember:port=5439
|
description:port=5439
|
||||||
uniqueMember:dbname=mydb
|
description:dbname=mydb
|
||||||
uniqueMember:user=mydb_user
|
description:user=mydb_user
|
||||||
uniqueMember:sslmode=require
|
description:sslmode=require
|
||||||
</programlisting>
|
</programlisting>
|
||||||
might be queried with the following LDAP URL:
|
might be queried with the following LDAP URL:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
ldap://ldap.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=mydatabase)
|
ldap://ldap.mycompany.com/dc=mycompany,dc=com?description?one?(cn=mydatabase)
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user