pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ryan Underwood <nemesis-lists@icequake.net>
To: pgsql-admin@postgresql.org
Subject: kerberos 5: wrong principal
Date: Wed, 24 Jan 2007 14:52:30 -0600
Message-ID: <20070124205230.GA17300@dbz.icequake.net> (raw)


I am having some trouble transitioning from a pam_krb5 setup to native
Kerberos 5.

What is the meaning of the following error:
2007-01-24 14:42:35 [3780] LOG:  connection received: host=216.229.91.242 port=4744
2007-01-24 14:42:35 [3780] LOG:  Kerberos recvauth returned error -1765328240
postgres: Wrong principal in request from krb5_recvauth
2007-01-24 14:42:35 [3780] FATAL:  Kerberos5 authentication failed for
user "nemesis"

- I have enabled krb_server_keyfile = '/etc/postgresql/krb5.keytab'
- I exported the keys for both host/host.domain and postgres/host.domain principals into that keytab
- The keytab is 640 root:postgres

This is postgres 7.4 but I tried 8.1 with no improvement.
The user account does exist and he can login if I use pam_krb5 instead
of native krb5.  With native krb5, the client can not log in with or
without a TGT.

I tried stracing the postmaster process and it opens the krb5.conf file,
but does not appear to ever connect to the KDC before returning the
error to the client:
$ psql -h db -l
psql: Kerberos 5 authentication failed

Any ideas?

-- 
Ryan Underwood, <nemesis@icequake.net>

Attachments:

  signature.asc (application/pgp-signature, 188B) download

Message-ID: <20070124205230.GA17300@dbz.icequake.net>
Permalink:  ../20070124205230.GA17300@dbz.icequake.net/
Also on:    postgresql.org/message-id/20070124205230.GA17300@dbz.icequake.net

 · 

reply

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: nemesis-lists@icequake.net
  Subject: Re: kerberos 5: wrong principal
  In-Reply-To: <20070124205230.GA17300@dbz.icequake.net>
  References: <20070124205230.GA17300@dbz.icequake.net>

* 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