Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 3B66A9FB48A for ; Wed, 24 Jan 2007 17:19:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 39612-08 for ; Wed, 24 Jan 2007 17:19:23 -0400 (AST) X-Greylist: delayed 00:26:44.924948 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 8B5E59FB5F1 for ; Wed, 24 Jan 2007 17:19:25 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.icequake.net (216-229-91-229-empty.fidnet.com [216.229.91.229]) by svr4.postgresql.org (Postfix) with ESMTP id A7BC85AF9FA for ; Wed, 24 Jan 2007 20:52:39 +0000 (GMT) Received: from dbz.icequake.net (dbz.icequake.net [216.229.91.244]) by mail.icequake.net (Postfix) with ESMTP id C60FD27B4B for ; Wed, 24 Jan 2007 14:52:30 -0600 (CST) Received: from nemesis by dbz.icequake.net with local (Exim 4.63) (envelope-from ) id 1H9p6c-0004ii-K3 for pgsql-admin@postgresql.org; Wed, 24 Jan 2007 14:52:30 -0600 Date: Wed, 24 Jan 2007 14:52:30 -0600 From: Ryan Underwood To: pgsql-admin@postgresql.org Subject: kerberos 5: wrong principal Message-ID: <20070124205230.GA17300@dbz.icequake.net> Reply-To: nemesis@icequake.net MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.136 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200701/237 X-Sequence-Number: 24393 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D216.229.91.242= port=3D4744 2007-01-24 14:42:35 [3780] LOG: Kerberos recvauth returned error -17653282= 40 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 =3D '/etc/postgresql/krb5.keytab' - I exported the keys for both host/host.domain and postgres/host.domain pr= incipals 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? --=20 Ryan Underwood, --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFt8cOIonHnh+67jkRAh/DAJ9eO0d9a17wkW2iaGgxfCRc10WDeACfePd1 OpwCZqJR8DwpOhVf7McZgqs= =8ZTW -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--