Re: Issue with configuration parameter "require_auth"

From: "Gaisford, Phillip" <phillip(dot)gaisford(at)hpe(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Issue with configuration parameter "require_auth"
Date: 2024-07-17 16:17:16
Message-ID: DM4PR84MB15178765743B35906D9F380D8DA32@DM4PR84MB1517.NAMPRD84.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Interesting…

So what would a connection URI using require_auth properly look like? Here’s what I have been trying:

url: "postgres://postgres:postgres(at)localhost:5432/aioli?require_auth=password&application_name=aioli-controller&sslmode=disable&sslrootcert=",

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Date: Wednesday, July 17, 2024 at 11:24 AM
To: Gaisford, Phillip <phillip(dot)gaisford(at)hpe(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Issue with configuration parameter "require_auth"
"Gaisford, Phillip" <phillip(dot)gaisford(at)hpe(dot)com> writes:
> Using golang sqlx.Connect on the client side, the connection fails and my Postgresql 16 server logs the following:
> 2024-07-17 14:42:07.285 UTC [115] FATAL: unrecognized configuration parameter "require_auth"

require_auth is a connection parameter, like host or port or dbname.
You seem to be trying to specify it as a server parameter, ie inside
the "options" connection parameter.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthias Apitz 2024-07-17 16:26:22 Re: Support of Postgresql 15 for Sles15Sp6
Previous Message Kashif Zeeshan 2024-07-17 15:37:43 Re: PgbackRest and EDB Query