File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
Filter options
Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
Original file line number Diff line number Diff line change 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 $ -->
2
2
3
3
<chapter id="libpq">
4
4
<title><application>libpq</application> - C Library</title>
@@ -5085,6 +5085,19 @@ defaultNoticeProcessor(void *arg, const char *message)
5085
5085
ldap://ldap.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=mydatabase)
5086
5086
</synopsis>
5087
5087
</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>
5088
5101
</sect1>
5089
5102
5090
5103
Original file line number Diff line number Diff line change 1
1
<!--
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 $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -567,6 +567,8 @@ PostgreSQL documentation
567
567
<programlisting>
568
568
$ <userinput>psql "service=myservice sslmode=require"</userinput>
569
569
</programlisting>
570
+ This way you can also use LDAP for connection parameter lookup as
571
+ described in <xref linkend="libpq-ldap">.
570
572
See <xref linkend="libpq-connect"> for more information on all the
571
573
available connection options.
572
574
</para>
Original file line number Diff line number Diff line change 4
4
# A service is a set of named connection parameters. You may specify
5
5
# multiple services in this file. Each starts with a service name in
6
6
# 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
8
9
# included in this file. Lines beginning with '#' are comments.
9
10
#
10
11
# Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and
You can’t perform that action at this time.
0 commit comments