pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Craig Ringer <craig@postnewspapers.com.au>
Cc: rahimeh khodadadi <rahimeh.khodadadi@gmail.com>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Fwd: psql+krb5
Date: Tue, 1 Dec 2009 20:45:56 -0500
Message-ID: <20091202014556.GS17756@tamriel.snowman.net> (raw)
In-Reply-To: <4B15BD22.3020307@postnewspapers.com.au>
References: <bbeb3140911282318p7ee124efm80da7c4029c10c91@mail.gmail.com>
	<20091129174504.545219cc@db>
	<bbeb3140911290253u59ef66e9tb6791f37b21765c9@mail.gmail.com>
	<20091129181833.5e00ce2e@db>
	<bbeb3140911290325tc8870eamd6dd9fe8961bdba2@mail.gmail.com>
	<bbeb3140911292329m5a6f4dfbjb539138119accc9c@mail.gmail.com>
	<4B15BD22.3020307@postnewspapers.com.au>

* 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  
> 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 = 'postgres/star@EXAMPLE.COM'

The documentation, I think, is pretty clear:
http://www.postgresql.org/docs/8.4/interactive/auth-methods.html#KERBEROS-AUTH

 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 = '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 = '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  
> 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

Attachments:

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

view thread (7+ messages)  latest in thread

Message-ID: <20091202014556.GS17756@tamriel.snowman.net>
Permalink:  ../20091202014556.GS17756@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20091202014556.GS17756@tamriel.snowman.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-odbc@postgresql.org
  Cc: sfrost@snowman.net, craig@postnewspapers.com.au, rahimeh.khodadadi@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Fwd: psql+krb5
  In-Reply-To: <20091202014556.GS17756@tamriel.snowman.net>
  References: <bbeb3140911282318p7ee124efm80da7c4029c10c91@mail.gmail.com> <20091129174504.545219cc@db> <bbeb3140911290253u59ef66e9tb6791f37b21765c9@mail.gmail.com> <20091129181833.5e00ce2e@db> <bbeb3140911290325tc8870eamd6dd9fe8961bdba2@mail.gmail.com> <bbeb3140911292329m5a6f4dfbjb539138119accc9c@mail.gmail.com> <4B15BD22.3020307@postnewspapers.com.au> <20091202014556.GS17756@tamriel.snowman.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