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

Commit28b0d6b

Browse files
committed
Add LDAP documentation missed in code patch.
Magnus Hagander
1 parent8fc2a5a commit28b0d6b

File tree

2 files changed

+79
-3
lines changed

2 files changed

+79
-3
lines changed

‎doc/src/sgml/client-auth.sgml

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.89 2006/04/30 21:15:32 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.90 2006/06/1615:16:16 momjian Exp $ -->
22

33
<chapter id="client-authentication">
44
<title>Client Authentication</title>
@@ -372,6 +372,16 @@ hostnossl <replaceable>database</replaceable> <replaceable>user</replaceable>
372372
</listitem>
373373
</varlistentry>
374374

375+
<varlistentry>
376+
<term><literal>ldap</></term>
377+
<listitem>
378+
<para>
379+
Authenticate using LDAP to a central server. See <xref
380+
linkend="auth-ldap"> for details.
381+
</para>
382+
</listitem>
383+
</varlistentry>
384+
375385
<varlistentry>
376386
<term><literal>pam</></term>
377387
<listitem>
@@ -896,6 +906,56 @@ omicron bryanh guest1
896906
</sect3>
897907
</sect2>
898908

909+
<sect2 id="auth-ldap">
910+
<title>LDAP authentication</title>
911+
912+
<indexterm zone="auth-ldap">
913+
<primary>LDAP</primary>
914+
</indexterm>
915+
916+
<para>
917+
This authentication method operates similarly to
918+
<literal>password</literal> except that it uses LDAP
919+
as the authentication method. LDAP is used only to validate
920+
the user name/password pairs. Therefore the user must already
921+
exist in the database before LDAP can be used for
922+
authentication. The server and parameters used are specified
923+
after the <literal>ldap</> key word in the file
924+
<filename>pg_hba.conf</filename>. The format of this parameter is:
925+
<synopsis>
926+
ldap[<replaceable>s</>]://<replaceable>servername</>[:<replaceable>port</>]/<replaceable>base dn</replaceable>[;<replaceable>prefix</>[;<replaceable>suffix</>]]
927+
</synopsis>
928+
for example:
929+
<synopsis>
930+
ldap://ldap.example.net/dc=example,dc=net;EXAMPLE\
931+
</synopsis>
932+
933+
</para>
934+
<para>
935+
If <literal>ldaps</> is specified instead of <literal>ldap</>,
936+
TLS encryption will be enabled for the connection. Note that this
937+
will encrypt only the connection between the PostgreSQL server
938+
and the LDAP server. The connection between the client and the
939+
PostgreSQL server is not affected by this setting. To make use of
940+
TLS encryption, you may need to configure the LDAP library prior
941+
to configuring PostgreSQL.
942+
</para>
943+
<para>
944+
If no port is specified, the default port as configured in the
945+
LDAP library will be used.
946+
</para>
947+
<para>
948+
The server will bind to the distinguished name specified as
949+
<replaceable>base dn</> using the username supplied by the client.
950+
If <replaceable>prefix</> and <replaceable>suffix</> is
951+
specified, it will be prepended and appended to the username
952+
before the bind. Typically, the prefix parameter is used to specify
953+
<replaceable>cn=</>, or <replaceable>DOMAIN\</> in an Active
954+
Directory environment.
955+
</para>
956+
957+
</sect2>
958+
899959
<sect2 id="auth-pam">
900960
<title>PAM authentication</title>
901961

‎doc/src/sgml/installation.sgml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.256 2006/04/25 15:19:16 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.257 2006/06/16 15:16:16 momjian Exp $ -->
22

33
<chapter id="installation">
44
<title><![%standalone-include[<productname>PostgreSQL</>]]>
@@ -279,7 +279,8 @@ su - postgres
279279

280280
<listitem>
281281
<para>
282-
<application>Kerberos</>, <productname>OpenSSL</>, and/or
282+
<application>Kerberos</>, <productname>OpenSSL</>,
283+
<productname>OpenLDAP</>, and/or
283284
<application>PAM</>, if you want to support authentication or
284285
encryption using these services.
285286
</para>
@@ -848,6 +849,21 @@ su - postgres
848849
</listitem>
849850
</varlistentry>
850851

852+
<varlistentry>
853+
<term><option>--with-ldap</option></term>
854+
<listitem>
855+
<para>
856+
Build with <acronym>LDAP</><indexterm><primary>LDAP</></>
857+
authentication support. On Unix, this requires the
858+
<productname>OpenLDAP</> package to be installed.
859+
<filename>configure</> will check for the required header files
860+
and libraries to make sure that your <productname>OpenLDAP</>
861+
installation is sufficient before proceeding. On Windows,
862+
the default <productname>WinLDAP</> library is used.
863+
</para>
864+
</listitem>
865+
</varlistentry>
866+
851867
<varlistentry>
852868
<term><option>--with-libedit-preferred</option></term>
853869
<listitem>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp