pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedAuthentication problem
2+ messages / 2 participants
[nested] [flat]
* Authentication problem
@ 1998-06-12 17:58 eric@gateway.ctlno.com
1998-06-12 18:40 ` Re: [INTERFACES] Authentication problem Byron Nikolaidis <byronn@insightdist.com>
0 siblings, 1 reply; 2+ messages in thread
From: eric@gateway.ctlno.com @ 1998-06-12 17:58 UTC (permalink / raw)
To: pgsql-interfaces
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] Authentication problem
1998-06-12 17:58 Authentication problem eric@gateway.ctlno.com
@ 1998-06-12 18:40 ` Byron Nikolaidis <byronn@insightdist.com>
0 siblings, 0 replies; 2+ messages in thread
From: Byron Nikolaidis @ 1998-06-12 18:40 UTC (permalink / raw)
To: eric@gateway.ctlno.com; +Cc: pgsql-interfaces
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1998-06-12 18:40 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-06-12 17:58 Authentication problem eric@gateway.ctlno.com
1998-06-12 18:40 ` Byron Nikolaidis <byronn@insightdist.com>
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