From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andre Schubert <andre.schubert@geyer.kabeljournal.de>
Cc: psycopg@lists.initd.org <psycopg@lists.initd.org>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: [Fwd: [Zope-dev] Authentication Problem with Postgres]
Date: Fri, 23 Nov 2001 15:01:29 -0500
Message-ID: <9826.1006545689@sss.pgh.pa.us> (raw)
In-Reply-To: <3BFDDFB1.17EEEB3C@geyer.kabeljournal.de>
References: <3BFDDFB1.17EEEB3C@geyer.kabeljournal.de>
Andre Schubert <andre.schubert@geyer.kabeljournal.de> writes:
> sometimes i have a curios problem with my Zope.
> My sysop has traced the protcols before and after the error.
> Zope sends some data and then a crypted password with the salt.
> If the error is occured the password that Zope sends is crypted wrong.
> After a restart of Zope the password is right crypted.
If you've determined that in fact the wrong password is being sent
from the client side, then it seems that there are only two
possibilities: one, Zope is handing the wrong password to libpq,
or two, there's something broken in the crypt library on your client
machine. libpq's handling of the password is so trivial that I find
it hard to see how there could be such a problem inside libpq itself.
If you're not convinced, I'd suggest adding some debug logging printout
to libpq (look in fe-connect.c and fe-auth.c). Try tracing the
arguments and result of the actual crypt() call in fe-auth.c, and
then work outwards if you need to.
You didn't say what platform you're on, but on some platforms I believe
that crypt() supports both traditional (DES variant) and MD5 encryption
styles. Possibly the problem is somehow related to choosing the wrong
encryption style (where "wrong" = "not what the postmaster is using").
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, andre.schubert@geyer.kabeljournal.de, psycopg@lists.initd.org
Subject: Re: [Fwd: [Zope-dev] Authentication Problem with Postgres]
In-Reply-To: <9826.1006545689@sss.pgh.pa.us>
References: <3BFDDFB1.17EEEB3C@geyer.kabeljournal.de> <9826.1006545689@sss.pgh.pa.us>
* 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