From: Byron Nikolaidis <byronn@insightdist.com>
To: eric@gateway.ctlno.com
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Authentication problem
Date: Fri, 12 Jun 1998 14:40:30 -0400
Message-ID: <3581761E.81EC3557@insightdist.com> (raw)
References: <Pine.LNX.3.96.980612125458.5129A-100000@gateway.ctlno.com>
eric@gateway.ctlno.com wrote:
> I am writing a program to interface with the pgsql backend in c on a
> linux box.
> When I try to connect, it gives me the following error message:
>
> Failed to authenticate client as Postgres user 'root' using <unknown
> authentication type>:be_recvauth: unrecognized message type: 65536
>
> I think maybe I should use the fe_setauthsvc function to change the
> authentication type, but the manual doesn't help on that function.
>
> User 'root' is a valid user for the database, and i've also tried other
> valid users to connect, with the same error message.
>
> Your help is greatly appreciated.
It looks like the protocol between the frontend and backend do not match.
If the backend is Postgres 6.2, you must use the 6.2 protocol. If you are
writing your own connection functions, then you must use the correct
startup packet.
Byron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: byronn@insightdist.com, eric@gateway.ctlno.com
Subject: Re: [INTERFACES] Authentication problem
In-Reply-To: <3581761E.81EC3557@insightdist.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox