Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0C4E1632D70 for ; Tue, 1 Dec 2009 21:46:09 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 78142-07 for ; Wed, 2 Dec 2009 01:45:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id 62A79632BC5 for ; Tue, 1 Dec 2009 21:45:58 -0400 (AST) Received: by tamriel.snowman.net (Postfix, from userid 1000) id 5A40B228F2; Tue, 1 Dec 2009 20:45:56 -0500 (EST) Date: Tue, 1 Dec 2009 20:45:56 -0500 From: Stephen Frost To: Craig Ringer Cc: rahimeh khodadadi , PG-General Mailing List Subject: Re: Fwd: psql+krb5 Message-ID: <20091202014556.GS17756@tamriel.snowman.net> References: <20091129174504.545219cc@db> <20091129181833.5e00ce2e@db> <4B15BD22.3020307@postnewspapers.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1zw2mNygT7DYkzlO" Content-Disposition: inline In-Reply-To: <4B15BD22.3020307@postnewspapers.com.au> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.26-1-amd64 (x86_64) X-Uptime: 20:32:02 up 96 days, 12:57, 18 users, load average: 0.08, 0.12, 0.05 User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.524 tagged_above=-10 required=5 tests=AWL=0.075, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/48 X-Sequence-Number: 156268 --1zw2mNygT7DYkzlO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Craig Ringer (craig@postnewspapers.com.au) wrote: > I've dropped all your cross-posts; this is just going to PgSQL-general. Thanks for that. > On 30/11/2009 3:29 PM, rahimeh khodadadi wrote: > >> psql: *krb5_sendauth: Bad application version was sent (via sendauth)* > > Also: a search for your error message finds this post, which, while =20 > related to a Windows kerberos server, seems to apply: It's the same kind of issue (wrong service name), but I think the real problem is this: krb_srvname =3D 'postgres/star@EXAMPLE.COM' The documentation, I think, is pretty clear: http://www.postgresql.org/docs/8.4/interactive/auth-methods.html#KERBEROS-A= UTH PostgreSQL operates like a normal Kerberos service. The name of the service principal is servicename/hostname@realm. servicename can be set on the server side using the krb_srvname configuration parameter The above should just be: krb_srvname =3D 'postgres' Or, better, just removed. Unless you're running under a Microsoft Active Directory Kerberos environment, the default should 'just work'. Additionally, this is also almost certainly wrong: krb_server_hostname =3D 'star' Again, referring to the same documentation: hostname is the fully qualified host name of the server machine. You really should have a proper FQDN set for this system. I would also recommend using a real domain rather than 'EXAMPLE.COM'. Also, I didn't see the version of PostgreSQL, but if you're using something recent your auth method should really be 'gss' instead of 'krb5'. > I don't know much about Kerberos, not I suspect do all that many people = =20 > on the list, so I can't be of any more help. Unfortunately, I don't pay as close attention to the lists as I wish I could. Kerberos with PG is actually a solution I typically recommend. Thanks, Stephen --1zw2mNygT7DYkzlO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksVxtQACgkQrzgMPqB3kihTAwCfYonsLsS1EirM+LQ89NbU+lXz loQAn0dK1N6xco7Wdtq4m5SVPjMWaC9G =zeD5 -----END PGP SIGNATURE----- --1zw2mNygT7DYkzlO--