Re: [INTERFACES] Authentication problem

From: Byron Nikolaidis <byronn(at)insightdist(dot)com>
To: eric(at)gateway(dot)ctlno(dot)com
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Authentication problem
Date: 1998-06-12 18:40:30
Message-ID: 3581761E.81EC3557@insightdist.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

eric(at)gateway(dot)ctlno(dot)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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1998-06-12 23:15:34 NEW ODBC DRIVER v.0245
Previous Message eric 1998-06-12 17:58:27 Authentication problem