Skip to content

Commit 44f4951

Browse files
committed
Update pg_hba.conf example to reflect MD5 deprecation
In the wake of commit db6a4a9, remove most use of 'md5' from the example configuration file. The only remainder is an example exception for a client that doesn't support SCRAM. Author: Mikael Gustavsson <mikael.gustavsson@smhi.se> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Andreas Karlsson <andreas@proxel.se> Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at> Discussion: https://postgr.es/m/176595607507.978865.11597773194269211255@wrigleys.postgresql.org Discussion: https://postgr.es/m/4ed268473fdb4cf9b0eced6c8019d353@smhi.se Backpatch-through: 18
1 parent 5cdbec5 commit 44f4951

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/client-auth.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -889,16 +889,16 @@ host all all 192.168.0.0/16 ident map=omicro
889889
# list of names of administrators. Passwords are required in all cases.
890890
#
891891
# TYPE DATABASE USER ADDRESS METHOD
892-
local sameuser all md5
893-
local all /^.*helpdesk$ md5
894-
local all @admins md5
895-
local all +support md5
892+
local sameuser all scram-sha-256
893+
local all /^.*helpdesk$ scram-sha-256
894+
local all @admins scram-sha-256
895+
local all +support scram-sha-256
896896

897897
# The last two lines above can be combined into a single line:
898-
local all @admins,+support md5
898+
local all @admins,+support scram-sha-256
899899

900900
# The database column can also use lists and file names:
901-
local db1,db2,@demodbs all md5
901+
local db1,db2,@demodbs all scram-sha-256
902902
</programlisting>
903903
</example>
904904
</sect1>

0 commit comments

Comments
 (0)