adding support for scram authentication in health_check and sr_check connections.
authorMuhammad Usama <m.usama@gmail.com>
Tue, 7 Aug 2018 20:34:17 +0000 (01:34 +0500)
committerMuhammad Usama <m.usama@gmail.com>
Tue, 7 Aug 2018 20:34:17 +0000 (01:34 +0500)
commitb788e74fc1b576b4827d93fcc9403502264b8541
tree551314ac5d55790d37e8cd6c0a81970f171c3820
parent6a943a7aab5d90f7a920b4fa824880edf6f652d8
adding support for scram authentication in health_check and sr_check connections.

explicit backend connections in Pgpool-II uses make_persistent_db_connection(),
which use a different code path from frontend connection to authenticating with
the backend and requires its own SCRAM auth handling.
(reported by Jesper Pedersen <jesper.pedersen@redhat.com>)

Commit also fixes a problem in md5 and scram frontend authentication, where
sometimes a client was able to connect without the password.

Finally the commit also allows to connect to Pgpool-II using trust authentication
with pgpool-II even when backends requires some different authentication method.
src/auth/pool_auth.c
src/include/pool.h
src/protocol/child.c