X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DD8C75E40BB; Tue, 17 Aug 2004 13:02:33 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40412-10; Tue, 17 Aug 2004 16:02:38 +0000 (GMT) Received: from ariel.cromwell.co.uk (unknown [213.249.208.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7B97A5E37CE; Tue, 17 Aug 2004 13:02:28 -0300 (ADT) Message-ID: Date: Tue, 17 Aug 2004 17:02:32 +0100 From: Mark Gibson MIME-Version: 1.0 Cc: pgsql-admin@postgresql.org, pgsql-php@postgresql.org Subject: Re: [PHP] Kerberos, Apache2, mod_auth_kerb, PHP, and PostgreSQL in References: <44fffac5903f1d3c69d160878754ce2f41221776@cromwell.co.uk> <412229EC.3050203@cromwell.co.uk> In-Reply-To: <412229EC.3050203@cromwell.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=PLING_QUERY X-Spam-Level: X-Archive-Number: 200408/146 X-Sequence-Number: 14541 Mark Gibson wrote: > Mark Gibson wrote: > >> Hi, >> I've been trying to Kerberize our Apache and PostgreSQL servers for >> our company's web applications. [snip] > > I'VE DONE IT! THE HOLY GRAIL OF WEB/DB APPS! :) > > All it takes it this line your PHP script: > > putenv("KRB5CCNAME={$_SERVER['KRB5CCNAME']}"); > > Then pg_connect works :) Or, not, as the case may be. Well, sometimes it connects and sometimes it doesn't, PostgreSQL logs the following error: Kerberos recvauth returned error 103 Any ideas??? -- Mark Gibson Web Developer & Database Admin Cromwell Tools Ltd. Leicester, England.