回复: ident auth does not works as usual

From: pan snowave <windxp(at)live(dot)cn>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: 回复: ident auth does not works as usual
Date: 2023-08-28 03:30:17
Message-ID: OS3P286MB1933E0EFD47E8EEA7D1A4A07D3E0A@OS3P286MB1933.JPNP286.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

"Show your psql command that is failing."

[root(at)~ 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.

Reference information:
PG version 15.3

Thanks.
________________________________
发件人: David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
发送时间: 2023年8月26日 14:43
收件人: pan snowave <windxp(at)live(dot)cn>
抄送: pgsql-general(at)lists(dot)postgresql(dot)org <pgsql-general(at)lists(dot)postgresql(dot)org>
主题: Re: ident auth does not works as usual

On Saturday, August 26, 2023, pan snowave <windxp(at)live(dot)cn<mailto:windxp(at)live(dot)cn>> wrote:
Well , describe as follows:

pg_pba.conf
host all root 127.0.0.1/32<http://127.0.0.1/32> ident map=test
host all all 127.0.0.1/32<http://127.0.0.1/32> trust

pg_indent.conf

test root cce

and login pg via root user , it doesnt work

You are saying root os user can login as pg role cce but that line of the pg_hba.conf doesn’t permit cce to login. In short, the mapping is useless.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2023-08-28 03:47:01 Re: ident auth does not works as usual
Previous Message o1bigtenor 2023-08-27 20:51:54 Re: pgBackRest for a 50 TB database