Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server accepts any or no password when connecting #2

Open
alexanderfefelov opened this issue Feb 14, 2018 · 1 comment
Open

Server accepts any or no password when connecting #2

alexanderfefelov opened this issue Feb 14, 2018 · 1 comment
Assignees

Comments

@alexanderfefelov
Copy link
Owner

No description provided.

@alexanderfefelov alexanderfefelov self-assigned this Feb 14, 2018
@Goblenus
Copy link

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants