Re: ident auth does not works as usual - Mailing list pgsql-general

From David G. Johnston
Subject Re: ident auth does not works as usual
Date
Msg-id CAKFQuwYfrJFMO2fa_Z-kzEfrTJJk8SjxJJfbHsv3WQc0LEK+2Q@mail.gmail.com
Whole thread Raw
In response to ident auth does not works as usual  (pan snowave <windxp@LIVE.CN>)
List pgsql-general
On Sunday, August 27, 2023, pan snowave <windxp@live.cn> wrote:
Hi

"Show your psql command that is failing."

[root@~ pg]# /usr/local/pgsql/bin/psql   -p5432 -d db1     -h127.0.0.1
psql: error: connection to server at "127.0.0.1", port 5432 failed: FATAL:  Ident authentication failed for user "root"

If the error is  Ident authentication failed for user "cce", i think the ident config file taked effect.

What about your psql command is supposed to inform the system that you want to login at the db role cce?  The ident file doesn’t magically alias one name to another, it’s purpose is to allow some OS user to specify some other name to use to authenticate instead of the OS user they are executing the command with.

pgsql-general by date:

Previous
From: pan snowave
Date:
Subject: 回复: ident auth does not works as usual
Next
From: Luca Ferrari
Date:
Subject: Re: ora2pg -c ora2pg.conf -t COPY -a tablename not working properly