Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 484D92E0063 for ; Tue, 22 Apr 2008 12:21:15 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 85185-04 for ; Tue, 22 Apr 2008 12:20:58 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.186]) by developer.postgresql.org (Postfix) with ESMTP id A78652E0052 for ; Tue, 22 Apr 2008 12:20:58 -0300 (ADT) Received: by rn-out-0910.google.com with SMTP id i24so853335rng.0 for ; Tue, 22 Apr 2008 08:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=TQRTThpYcQ/kaBEBphycmTU5Jp9mgq6ZR92WSsqO4RI=; b=juTpBcS/KQzqzJy95hdw1ilYQYH/T0mrE6JfeDg4kYnH1w2YstqAJX1W1BwYu0HpT21bQx07lsl4WS8FGTAds0xGeFa7dp9AdgrkbhV+EZnzLxBznuxdX2xdNa+E4tc2BDg4DQqJ/5VGYeZ+J8vBxuI+H/06RJgUtl6IXwUykdo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MIk/V2NkP5TCJOTQA+ho9MNylkHkGa9/pUoPdBqSLnHoKSoYbDadvex/tyLmdQB6nKZzIuKBVeQ9xz2Uxrg+npy2dHQF5GD0/TflyBPsnvcubPJuPjfgqqu3r+9CjbRBicDd4q8NxUkY4u/V8v2igIVf6bfV7RxSdGkzlFe5k6w= Received: by 10.115.60.1 with SMTP id n1mr387659wak.181.1208877656896; Tue, 22 Apr 2008 08:20:56 -0700 (PDT) Received: by 10.114.199.20 with HTTP; Tue, 22 Apr 2008 08:20:56 -0700 (PDT) Message-ID: <4544e0330804220820y27e07184k1148d0e5e358ac1a@mail.gmail.com> Date: Tue, 22 Apr 2008 10:20:56 -0500 From: "Peter Koczan" To: "pgsql-admin@postgresql.org" Subject: Re: PG 8.3 and kerberos failures In-Reply-To: <4544e0330804181043y6db18a9bve072aa5bc44a8cc4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4544e0330804170940j45035b17s42071d7b2358ae80@mail.gmail.com> <4544e0330804181043y6db18a9bve072aa5bc44a8cc4@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/226 X-Sequence-Number: 28990 On Fri, Apr 18, 2008 at 12:43 PM, Peter Koczan wrote: > On Thu, Apr 17, 2008 at 11:40 AM, Peter Koczan wrote: > > Hi all, > > > > I just upgraded one of my servers and I'm having a bit of trouble > > getting some of the kerberos authentication bits working. > > Specifically, any Kerberos instance run out of a v5srvtab doesn't work > > so well. Using stashed tickets or normal principals worked fine. > > Gritty details follow. > > > > Peter > > > > Here are details from the specific v5srvtab's... > > [root@sensei postgres]# klist -k -t /etc/v5srvtab.wsbackup > > Keytab name: FILE:/etc/v5srvtab.wsbackup > > KVNO Timestamp Principal > > ---- ----------------- -------------------------------------------------------- > > 13 12/20/07 15:56:11 wsbackup/sensei.cs.wisc.edu@CS.WISC.EDU > > Here's what happens when I do this (it's on a different machine but > it's the same mechanism). > > [root@ator] ~ $ su - wsbackup > ator(1)% kinit -f -k -t /etc/v5srvtab.wsbackup -l 1d > wsbackup/ator.cs.wisc.edu@CS.WISC.EDU > ator(2)% klist > Ticket cache: FILE:/var/adm/krb5/tmp/tkt/krb5cc_28528 > Default principal: wsbackup/ator.cs.wisc.edu@CS.WISC.EDU > > Valid starting Expires Service principal > 04/18/08 12:25:00 04/19/08 12:25:00 krbtgt/CS.WISC.EDU@CS.WISC.EDU > > > Kerberos 4 ticket cache: /tmp/tkt28528 > klist: You have no tickets cached One more thing to note, I said before that stashed tickets and login principals "just work." Here might be something... [koczan@ator] koczan $ klist Ticket cache: FILE:/var/adm/krb5/tmp/tkt/krb5cc_3258_ZtKJNK Default principal: koczan@CS.WISC.EDU ... [root@mitchell ~]# export KRB5CCNAME=/var/adm/krb5/tmp/stash/krb5cc_25555.stash [root@mitchell ~]# klist Ticket cache: FILE:/var/adm/krb5/tmp/stash/krb5cc_25555.stash Default principal: strivia@CS.WISC.EDU ... They don't contain hostname data in the default principal like the keytab principal does, and yet they both connect fine. There could be something to this, but I don't know what, or how to take advantage of it. Peter