Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6a168e

Browse files
committed
Add LDAP URL documentation.
Albe Laurenz
1 parent13e2607 commitf6a168e

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.243 2007/09/02 01:13:55 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.244 2007/09/14 14:31:22 momjian Exp $ -->
22

33
<chapter id="libpq">
44
<title><application>libpq</application> - C Library</title>
@@ -5085,6 +5085,19 @@ defaultNoticeProcessor(void *arg, const char *message)
50855085
ldap://ldap.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=mydatabase)
50865086
</synopsis>
50875087
</para>
5088+
5089+
<para>
5090+
You can also mix regular service file entries with LDAP lookups.
5091+
A complete example for a stanza in <filename>pg_service.conf</filename>
5092+
would be:
5093+
<synopsis>
5094+
# only host and port are stored in LDAP, specify dbname and user explicitly
5095+
[customerdb]
5096+
dbname=customer
5097+
user=appuser
5098+
ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
5099+
</synopsis>
5100+
<para>
50885101
</sect1>
50895102

50905103

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.194 2007/08/22 04:45:20 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.195 2007/09/14 14:31:22 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -567,6 +567,8 @@ PostgreSQL documentation
567567
<programlisting>
568568
$ <userinput>psql "service=myservice sslmode=require"</userinput>
569569
</programlisting>
570+
This way you can also use LDAP for connection parameter lookup as
571+
described in <xref linkend="libpq-ldap">.
570572
See <xref linkend="libpq-connect"> for more information on all the
571573
available connection options.
572574
</para>

‎src/interfaces/libpq/pg_service.conf.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# A service is a set of named connection parameters. You may specify
55
# multiple services in this file. Each starts with a service name in
66
# brackets. Subsequent lines have connection configuration parameters of
7-
# the pattern "param=value". A sample configuration for postgres is
7+
# the pattern "param=value" or LDAP URLs starting with "ldap://"
8+
# to look up such parameters. A sample configuration for postgres is
89
# included in this file. Lines beginning with '#' are comments.
910
#
1011
# Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp