Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f6a168e2
Commit
f6a168e2
authored
Sep 14, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add LDAP URL documentation.
Albe Laurenz
parent
13e26073
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+14
-1
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+3
-1
src/interfaces/libpq/pg_service.conf.sample
src/interfaces/libpq/pg_service.conf.sample
+2
-1
No files found.
doc/src/sgml/libpq.sgml
View file @
f6a168e2
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.24
3 2007/09/02 01:13:55
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.24
4 2007/09/14 14:31:22
momjian Exp $ -->
<chapter id="libpq">
<chapter id="libpq">
<title><application>libpq</application> - C Library</title>
<title><application>libpq</application> - C Library</title>
...
@@ -5085,6 +5085,19 @@ defaultNoticeProcessor(void *arg, const char *message)
...
@@ -5085,6 +5085,19 @@ defaultNoticeProcessor(void *arg, const char *message)
ldap://ldap.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=mydatabase)
ldap://ldap.mycompany.com/dc=mycompany,dc=com?uniqueMember?one?(cn=mydatabase)
</synopsis>
</synopsis>
</para>
</para>
<para>
You can also mix regular service file entries with LDAP lookups.
A complete example for a stanza in <filename>pg_service.conf</filename>
would be:
<synopsis>
# only host and port are stored in LDAP, specify dbname and user explicitly
[customerdb]
dbname=customer
user=appuser
ldap://ldap.acme.com/cn=dbserver,cn=hosts?pgconnectinfo?base?(objectclass=*)
</synopsis>
<para>
</sect1>
</sect1>
...
...
doc/src/sgml/ref/psql-ref.sgml
View file @
f6a168e2
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.19
4 2007/08/22 04:45:20 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.19
5 2007/09/14 14:31:22 momjian
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -567,6 +567,8 @@ PostgreSQL documentation
...
@@ -567,6 +567,8 @@ PostgreSQL documentation
<programlisting>
<programlisting>
$ <userinput>psql "service=myservice sslmode=require"</userinput>
$ <userinput>psql "service=myservice sslmode=require"</userinput>
</programlisting>
</programlisting>
This way you can also use LDAP for connection parameter lookup as
described in <xref linkend="libpq-ldap">.
See <xref linkend="libpq-connect"> for more information on all the
See <xref linkend="libpq-connect"> for more information on all the
available connection options.
available connection options.
</para>
</para>
...
...
src/interfaces/libpq/pg_service.conf.sample
View file @
f6a168e2
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
# A service is a set of named connection parameters. You may specify
# A service is a set of named connection parameters. You may specify
# multiple services in this file. Each starts with a service name in
# multiple services in this file. Each starts with a service name in
# brackets. Subsequent lines have connection configuration parameters of
# brackets. Subsequent lines have connection configuration parameters of
# the pattern "param=value". A sample configuration for postgres is
# the pattern "param=value" or LDAP URLs starting with "ldap://"
# to look up such parameters. A sample configuration for postgres is
# included in this file. Lines beginning with '#' are comments.
# included in this file. Lines beginning with '#' are comments.
#
#
# Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and
# Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment