Frontend/backend protocol: authentication

From: Peter Schuller <peter(dot)schuller(at)infidyne(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Frontend/backend protocol: authentication
Date: 2002-07-08 17:57:28
Message-ID: 1026151048.1479.16.camel@prometheus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

(resend; first one didn't seem to make it)

Hello,

I'm attempting to implement a PosrgreSQL client in Squeak. I'm sending
what I believe to be a correct StartupPacket, but PostgreSQL
responds with an ErrorResponse: "FATAL 1: Password auth. failed...".

But I never asked for password authentication! According to the protocol
docs on the site, I should first be getting an Authentication* packet (I
think, an AuthenticationUnencrpytedPassword - but that one is not
documented), to which I should send a PasswordPacket. But now it returns
error before I get a chance.

What might I be doing wrong?

And am I correct in expecting an AuthenticationUnencryptedPassword
packet? Postgresql is set to use the "password" authentication method,
and another exising PostgreSQL protocol implementation failed because it
receivd such a packet (instead of some other one it expected).

Thanks,

--
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter(dot)schuller(at)infidyne(dot)com>'
Key retrival: Send an E-Mail to getpgpkey(at)scode(dot)org
E-Mail: peter(dot)schuller(at)infidyne(dot)com Web: http://www.scode.org

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug Fields 2002-07-08 18:04:51 Re: WAL recycling, Linux 2.4.18
Previous Message Jeff Boes 2002-07-08 17:38:53 Index used under 7.2 slows down query?