[pgpool-committers: 5349] pgpool: Fix broken authentication for Pgpool's internal connections
Muhammad Usama
m.usama at gmail.com
Fri Nov 16 05:54:37 JST 2018
Fix broken authentication for Pgpool's internal connections
The issue is caused by a mistake in "SCRAM and Certificate authentication
support" commit.
The problem is while authenticating against backend in connection_do_auth(), it
returns to caller as soon as backend returns auth ok response. So
authentication itself established fine. However connection_do_auth()
does not proceed until it receives "Ready for query", it is required
according to the frontend/backend protocol.
The fix is to keep processing the data after receiving auth_ok response
until we get ready for query.
Patch provided by Tatsuo Ishii <ishii at sraoss.co.jp> and a tiny modification
made by me
Branch
------
V4_0_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=e00426d2d772a8c9db0cd8159e73ab402d20c2d1
Modified Files
--------------
src/auth/pool_auth.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
More information about the pgpool-committers
mailing list