Re: Two round for Client Authentication

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: Yinjie Lin <exialin37(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Two round for Client Authentication
Date: 2018-06-14 04:54:22
Message-ID: CAL9smLBDZxHeAfjz2wEORZfc8yq6Rc+AZt5R6taW3KWF9dXGPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jun 14, 2018 at 7:12 AM, Yinjie Lin <exialin37(at)gmail(dot)com> wrote:

> Currently I am reading and testing code about Client Authentication, but I
> find that there are two progresses forked if I login using psql, while only
> one progress is forked if using pgAdmin.
>

If psql finds the server asks for a password, it closes the first
connection, displays a password prompt to the user, and then does another
connection attempt with the password the user entered. You can avoid the
first attempt with the -W flag; though there's usually no reason to do that
in practice.

.m

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2018-06-14 04:56:55 Re: Two round for Client Authentication
Previous Message Amit Langote 2018-06-14 04:12:31 Re: Partitioning with temp tables is broken