]> granicus.if.org Git - postgresql/commit
initdb: Change authentication defaults
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 22 Jul 2019 12:40:55 +0000 (14:40 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 22 Jul 2019 13:14:27 +0000 (15:14 +0200)
commit09f08930f0f6fd4a7350ac02f29124b919727198
tree67574a95b13957707ffbd0b3fb02434ec17bf3ef
parent1e6a759838f7c104f3cd1fe6981a98780da4131b
initdb: Change authentication defaults

Change the defaults for the pg_hba.conf generated by initdb to "peer"
for local (if supported, else "md5") and "md5" for host.

(Changing from "md5" to SCRAM is left as a separate exercise.)

"peer" is currently not supported on AIX, HP-UX, and Windows.  Users
on those operating systems will now either have to provide a password
to initdb or choose a different authentication method when running
initdb.

Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/bec17f0a-ddb1-8b95-5e69-368d9d0a3390%40postgresql.org
doc/src/sgml/ref/initdb.sgml
doc/src/sgml/runtime.sgml
doc/src/sgml/standalone-install.xml
src/bin/initdb/initdb.c
src/include/port.h
src/test/regress/pg_regress.c