27 Aug 21:36 2015
Problem with auth_user
Hi, I'm not totally sure if I'm seeing a bug on pgbouncer 1.6 or maybe I don't fully understand the auth_user + auth_query feature. I have the official pgbouncer 1.6 version. My configuration is this: [databases] *= port=5432 auth_user=postgres [pgbouncer] auth_type = trust auth_file = /etc/pgbouncer/userlist.txt auth_query = SELECT usename, passwd FROM pg_shadow WHERE usename=$1 The content of userlist.txt is: "postgres" "" When I try to log in with a existing postgresql user I get logged in with that user. However if I try to log in with a non existing user, I get logged in with postgres user. I would expect here to have a user authentication problem instead of getting logged in with the auth_user. Is that the expected behaviour? Is it maybe related with trust auth_type? Thanks(Continue reading)