[pgpool-committers: 4970] pgpool: adding the support for using and storing the encrypted password

Muhammad Usama m.usama at gmail.com
Tue Aug 7 21:43:32 JST 2018


adding the support for using and storing the encrypted passwords in pool_passwd
file to be used for SCRAM and other auth methods.
new utility pg_enc is also added for creating the encrypted passwords.
openssl is used for encryption and decryption, so Pgpool-II must be built with
ssl (--with-openssl) support to use the encrypted password feature.

Branch
------
SCRAM_AUTH

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=97459f9d699e10d308d5f71111a59dbcc5c3d27f

Modified Files
--------------
configure                       |   3 +-
configure.ac                    |   2 +-
src/Makefile.am                 |   1 +
src/Makefile.in                 |   4 +-
src/auth/pool_auth.c            | 154 +++++++--
src/auth/pool_hba.c             |   6 +-
src/auth/pool_passwd.c          | 127 +++++++-
src/include/auth/md5.h          |   1 -
src/include/auth/pool_passwd.h  |  12 +
src/include/auth/scram.h        |   2 +
src/include/pool.h              |   4 +
src/include/utils/ssl_utils.h   |  34 ++
src/include/watchdog/wd_utils.h |   7 +-
src/main/main.c                 |  60 +++-
src/tools/Makefile.am           |   2 +-
src/tools/Makefile.in           |   2 +-
src/tools/pgenc/Makefile.am     |  54 ++++
src/tools/pgenc/Makefile.in     | 687 ++++++++++++++++++++++++++++++++++++++++
src/tools/pgenc/pg_enc.c        | 450 ++++++++++++++++++++++++++
src/utils/ssl_utils.c           | 248 +++++++++++++++
src/watchdog/wd_utils.c         |  32 +-
21 files changed, 1822 insertions(+), 70 deletions(-)



More information about the pgpool-committers mailing list