Re: Application trying to use wrong user when logging into the database - Mailing list pgsql-novice

From Bzzzz
Subject Re: Application trying to use wrong user when logging into the database
Date
Msg-id 20210328160004.58d5426d@msi.defcon1.lan
Whole thread Raw
In response to Application trying to use wrong user when logging into the database  (Simon Connah <simon.n.connah@protonmail.com>)
Responses Re: Application trying to use wrong user when logging into the database
List pgsql-novice
On Sun, 28 Mar 2021 13:44:59 +0000
Simon Connah <simon.n.connah@protonmail.com> wrote:

Hi,

>  But instead of using my
> applications role which I created in PostgreSQL it is trying to use my
> Linux user name "simon" and is failing authentication because of it.
> I'm just confused at the moment. At no point in time have I created a
> role called "simon" and I have never tried to connect to any of my
> databases using the role name "simon", so why is it trying to
> authenticate as "simon"?

Read this and check you're not in this case :

https://www.dbrnd.com/2016/12/postgresql-pg_ident-conf-to-map-operating-system-username-and-database-username-external-authentication-password/

Jean-Yves



pgsql-novice by date:

Previous
From: Simon Connah
Date:
Subject: Application trying to use wrong user when logging into the database
Next
From: Simon Connah
Date:
Subject: Re: Application trying to use wrong user when logging into the database