docker-postgrespro-1c icon indicating copy to clipboard operation
docker-postgrespro-1c copied to clipboard

Server accepts any or no password when connecting

Open alexanderfefelov opened this issue 7 years ago • 1 comments

alexanderfefelov avatar Feb 14 '18 13:02 alexanderfefelov

Это поисходит из-за того, что у тебя в файле pg_hba.conf написано следующее:

host    all             all             0.0.0.0/0            trust
host    all             all             ::1/128              trust

даже если ты ставишь host all all all md5, это не помежет по причине того, что настройки применяются до первой подошедшей, а первая будет со значением trust, что и позволяет логиниться с любым значением в пароле.

Goblenus avatar Apr 17 '18 19:04 Goblenus