View Issue Details

IDProjectCategoryView StatusLast Update
0000526Pgpool-IIBugpublic2019-07-23 11:29
Reportervan Assigned Topengbo  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version4.0.2 
Summary0000526: pgpool authentication
DescriptionHi,

Regarding pgpool authentication
 
Configuration are

pgpool.conf
enable_pool_hba = on

pool_hba.conf
host all all all md5
local all all md5


pool_passwd
postgres: "someValue"
mpspostgres: "someValue"

When i tried to connection to pgpool (with password as "someValue")
root@ubuntu:~# psql -U mpsroot -p 5432 -h 192.168.1.233 mpsdb
Password for user mpsroot:

I am successfully able to connection even though password for mpsroot user is not present in pool_passwd file.
TagsNo tags attached.

Activities

pengbo

2019-07-08 17:00

developer   ~0002696

If you want to do md5 authentication, you need to set md5 authentication at both of Pgpool-II and backend.

See more about Pgpool-II authentication:
https://pgpool.net/mediawiki/index.php/FAQ#I_created_pool_hba.conf_and_pool_passwd_to_enable_md5_authentication_through_pgpool-II_but_it_does_not_work._Why.3F
https://pgpool.net/mediawiki/index.php/FAQ#How_does_pgpool-II_handle_md5_authentication.3F

van

2019-07-08 17:50

reporter   ~0002697

Hi pengbo,

what if we want authentication at back-end (DB) node only , not at pgpool
In that case pgpool send a password from pool_passswd file or whatever the password client passes in connection string

van

2019-07-08 18:29

reporter   ~0002698

Hi pengbo,

According to doc

pg_hba.conf pool_hba.conf pool_passwd result
  trust md5 no "MD5" authentication with pgpool failed for user "XX"


My case is same
pool_hba.conf contain md5
pool_passwd doesn't contain password for mpsroot

still i am able to successfully login with user mpsroot

attaching the conf files
pool_passwd (56 bytes)   
pool_passwd (56 bytes)   
pool_hba.conf (3,237 bytes)
pg_hba.conf (4,236 bytes)

pengbo

2019-07-10 14:46

developer   ~0002699

> root@ubuntu:~# psql -U mpsroot -p 5432 -h 192.168.1.233 mpsdb

Is "5432" port of Pgpool-II or PostgreSQL server?

Could you share your pgpool.conf?

pengbo

2019-07-22 14:16

developer   ~0002734

If you have resovled this issue, may I close this issue?

van

2019-07-22 16:49

reporter   ~0002736

Yes please, thanks for the help

Issue History

Date Modified Username Field Change
2019-07-07 17:53 van New Issue
2019-07-08 14:10 pengbo Assigned To => pengbo
2019-07-08 14:10 pengbo Status new => assigned
2019-07-08 17:00 pengbo Note Added: 0002696
2019-07-08 17:50 van Note Added: 0002697
2019-07-08 18:29 van File Added: pool_passwd
2019-07-08 18:29 van File Added: pool_hba.conf
2019-07-08 18:29 van File Added: pg_hba.conf
2019-07-08 18:29 van Note Added: 0002698
2019-07-10 14:46 pengbo Note Added: 0002699
2019-07-22 14:16 pengbo Note Added: 0002734
2019-07-22 16:49 van Note Added: 0002736
2019-07-23 11:29 pengbo Status assigned => closed