Received: from srv-geyer.geyer.kabeljournal.de (srv-geyer.geyer.kabeljournal.de [213.68.240.11]) by postgresql.org (8.11.3/8.11.4) with SMTP id fAQ9i5m63822 for ; Mon, 26 Nov 2001 04:44:05 -0500 (EST) (envelope-from andre.schubert@geyer.kabeljournal.de) Received: (qmail 19424 invoked from network); 26 Nov 2001 09:44:00 -0000 Received: from station1.geyer.kabeljournal.de (HELO geyer.kabeljournal.de) (192.168.129.1) by srv-geyer.geyer.kabeljournal.de with SMTP; 26 Nov 2001 09:44:00 -0000 Message-ID: <3C0211E3.897BB305@geyer.kabeljournal.de> Date: Mon, 26 Nov 2001 10:56:51 +0100 From: Andre Schubert X-Mailer: Mozilla 4.77 [de] (X11; U; Linux 2.2.14-5.0 i586) X-Accept-Language: en MIME-Version: 1.0 To: Tom Lane CC: "psycopg@lists.initd.org" , "pgsql-admin@postgresql.org" Subject: Re: [Fwd: [Zope-dev] Authentication Problem with Postgres] References: <3BFDDFB1.17EEEB3C@geyer.kabeljournal.de> <9826.1006545689@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200111/123 X-Sequence-Number: 2648 Tom Lane schrieb: > > Andre Schubert 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"). > Zope(2.3.3) runs on a Immunix RedHat 6.2. All Client Libraries are 7.1.3. The Postgres-Server 7.1.3 runs on another Immunix RedHat 6.2 box. thanks as > regards, tom lane