Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 461ea6b

Browse files
committed
Better document use of ident on localhost, per Tom Lane's idea.
1 parent 357d9bd commit 461ea6b

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed

doc/src/sgml/client-auth.sgml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.11 2001/05/12 22:51:34 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/client-auth.sgml,v 1.12 2001/07/11 20:32:10 momjian Exp $ -->
22

33
<chapter id="client-authentication">
44
<title>Client Authentication</title>
@@ -242,7 +242,10 @@ hostssl <replaceable>database</replaceable> <replaceable>IP-address</replaceable
242242
of the connecting user. <productname>Postgres</productname>
243243
then verifies whether the so identified operating system user
244244
is allowed to connect as the database user that is requested.
245-
This is only available for TCP/IP connections.
245+
This is only available for TCP/IP connections. It can be used
246+
on the local machine by specifying the localhost address 127.0.0.1.
247+
</para>
248+
<para>
246249
The <replaceable>authentication option</replaceable> following
247250
the <literal>ident</> keyword specifies the name of an
248251
<firstterm>ident map</firstterm> that specifies which operating
@@ -553,7 +556,8 @@ host all 192.168.0.0 255.255.0.0 ident omicron
553556
<attribution>RFC 1413</attribution>
554557
<para>
555558
The Identification Protocol is not intended as an authorization
556-
or access control protocol.
559+
or access control protocol. You must trust the machine running the
560+
ident server.
557561
</para>
558562
</blockquote>
559563
</para>

src/backend/libpq/pg_hba.conf.sample

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# PostgreSQL HOST-BASED ACCESS (HBA) CONTROL FILE
2+
# PostgreSQL HOST-BASED ACCESS (HBA) CONTROL FILE
33
#
44
#
55
# This file controls:
@@ -101,9 +101,9 @@
101101
# be use only for machines where all users are truested.
102102
#
103103
# password: Authentication is done by matching a password supplied
104-
# in clear by the host. If no AUTH_ARGUMENT is used, the
105-
# password is compared with the user's entry in the
106-
# pg_shadow table.
104+
# in clear by the host. If no AUTH_ARGUMENT is used, the
105+
# password is compared with the user's entry in the
106+
# pg_shadow table.
107107
#
108108
# If AUTH_ARGUMENT is specified, the username is looked up
109109
# in that file in the $PGDATA directory. If the username
@@ -118,30 +118,30 @@
118118
# passwords.
119119
#
120120
# crypt: Same as "password", but authentication is done by
121-
# encrypting the password sent over the network. This is
122-
# always preferable to "password" except for old clients
123-
# that don't support "crypt". Also, crypt can use
124-
# usernames stored in secondary password files but not
125-
# secondary passwords.
126-
#
127-
# ident: Authentication is done by the ident server on the local
128-
# or remote host. AUTH_ARGUMENT is required and maps names
129-
# found in the $PGDATA/pg_ident.conf file. The connection
130-
# is accepted if the file contains an entry for this map
131-
# name with the ident-supplied username and the requested
132-
# PostgreSQL username. The special map name "sameuser"
133-
# indicates an implied map (not in pg_ident.conf) that
134-
# maps each ident username to the identical PostgreSQL
121+
# encrypting the password sent over the network. This is
122+
# always preferable to "password" except for old clients
123+
# that don't support "crypt". Also, crypt can use
124+
# usernames stored in secondary password files but not
125+
# secondary passwords.
126+
#
127+
# ident: Authentication is done by the ident server on the local
128+
# (127.0.0.1) or remote host. AUTH_ARGUMENT is required and
129+
# maps names found in the $PGDATA/pg_ident.conf file. The
130+
# connection is accepted if the file contains an entry for
131+
# this map name with the ident-supplied username and the
132+
# requested PostgreSQL username. The special map name
133+
# "sameuser" indicates an implied map (not in pg_ident.conf)
134+
# that maps each ident username to the identical PostgreSQL
135135
# username.
136136
#
137-
# krb4: Kerberos V4 authentication is used.
137+
# krb4: Kerberos V4 authentication is used.
138138
#
139-
# krb5: Kerberos V5 authentication is used.
139+
# krb5: Kerberos V5 authentication is used.
140140
#
141141
# reject: Reject the connection. This is used to reject certain hosts
142-
# that are part of a network specified later in the file.
143-
# To be effective, "reject" must appear before the later
144-
# entries.
142+
# that are part of a network specified later in the file.
143+
# To be effective, "reject" must appear before the later
144+
# entries.
145145
#
146146
# Local UNIX-domain socket connections support only the AUTH_TYPEs of
147147
# "trust", "password", "crypt", and "reject".

0 commit comments

Comments
 (0)