I am trying to configure Postgres to receive connections with md5 encrypted passwords. I read plenty of manuals and followed the instructions and yet I am unsuccessful.
We have several docker containers, one of them is a Postgres 9 container that we are configuring using the init_db.sh script. The final configuration on a running container is:
listen_addresses = '*'
local all all md5
host all all all md5
Running: lsof -i tcp:5432 (I'm running on my Mac for now), produced this:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
com.docke 17454 sigals 36u IPv4 0x13ec351b99f025cd 0t0 TCP *:postgresql (LISTEN)
com.docke 17454 sigals 37u IPv6 0x13ec351b8ce8a025 0t0 TCP localhost:postgresql (LISTEN)
When I start the container running with the encrypted password, I get: ERROR org.apache.tomcat.jdbc.pool.ConnectionPool:182 - Unable to create initial connections of pool.
2017-02-08T14:07:43.438478547Z org.postgresql.util.PSQLException: FATAL: password authentication failed for user "myuser"
When I put the password as plaintext it works.
When I configured the IP to localhost only, both encrypted and plaintext passwords worked.
What did I configure wrong?