X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CA5775E4249 for ; Tue, 17 Aug 2004 19:12: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 77148-09 for ; Tue, 17 Aug 2004 22:12:30 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id DF1735E37CE for ; Tue, 17 Aug 2004 19:12:28 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i7HMCSiG079902 for ; Tue, 17 Aug 2004 22:12:28 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7HLnrNV072968 for pgsql-php@postgresql.org; Tue, 17 Aug 2004 21:49:53 GMT From: =?ISO-8859-1?Q?=22Miguel_A=2E_Ar=E9valo=22?= X-Newsgroups: comp.databases.postgresql.interfaces.php Subject: Re: Kerberos, Apache2, mod_auth_kerb, PHP, and PostgreSQL in Date: Tue, 17 Aug 2004 23:50:10 +0200 Organization: Hub.Org Networking Services Lines: 36 Message-ID: References: <44fffac5903f1d3c69d160878754ce2f41221776@cromwell.co.uk> <412229EC.3050203@cromwell.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040805) X-Accept-Language: en-us, en In-Reply-To: To: pgsql-php@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/34 X-Sequence-Number: 2922 AFAIK, redirecting credentials is not supported in mod_auth_krb. I remember listening something that makes it impossible due to way Linux/UNIX works, but don't take this as something more than a rumor. Regards. Mark Gibson wrote: > 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??? >