Rename ident authentication over local connections to peer

Magnus Hagander <magnus@hagander.net>

Commit: 6f9192df61e183826211ad2eaf325c6de5cf3656
Author: Magnus Hagander <magnus@hagander.net>
Date: 2011-03-19T17:44:35Z
Releases: 9.1.0
Rename ident authentication over local connections to peer

This removes an overloading of two authentication options where
one is very secure (peer) and one is often insecure (ident). Peer
is also the name used in libpq from 9.1 to specify the same type
of authentication.

Also make initdb select peer for local connections when ident is
chosen, and ident for TCP connections when peer is chosen.

ident keyword in pg_hba.conf is still accepted and maps to peer
authentication.

Files

PathChange+/−
doc/src/sgml/client-auth.sgml modified +62 −34
doc/src/sgml/runtime.sgml modified +1 −1
src/backend/libpq/auth.c modified +47 −65
src/backend/libpq/hba.c modified +23 −1
src/backend/libpq/pg_hba.conf.sample modified +2 −2
src/bin/initdb/initdb.c modified +19 −0
src/include/libpq/hba.h modified +2 −1