Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4B38C63457C for ; Wed, 2 Dec 2009 02:40:57 -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 26140-02 for ; Wed, 2 Dec 2009 06:40:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mail.postgresql.org (Postfix) with ESMTP id BC0E6634558 for ; Wed, 2 Dec 2009 02:40:45 -0400 (AST) Received: by ewy26 with SMTP id 26so6144275ewy.3 for ; Tue, 01 Dec 2009 22:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=LSM0PkHx/4Vb9cz0tzNjSy5tovBqYyzxxL7TK7u9hvk=; b=Sx3rykS0lN/dKOs9ev4srzvEJnJ9YiMxNyUPXzU1y+Uw7WTi4ul8KnnkmlV8FkRxpA ao17bcKA3oJZNMNiKW6Iy6s32IY1R3EB8hhtmg1yKCgAwLAX9T6dU4TE3i9U8zhxq7Q/ h3Cw4yGEs69xowflWYqTnjMznEFHcIFgcPa/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=i03ZjFpPqQczcj6tDqFbtE3uS6beXUkb6F4Kc95t3SCAP9CDpYMS4T+mGlUbCZdrQl W3kIpVWArLC8La/vOKzOwQERNufPsPREk/BMlhLJnXQ4kDm7913A8L7f4rKbD2sLb+8O KXcki3uUhA8B8oQm94dr/KYeJ3W0Q/27p+EbM= MIME-Version: 1.0 Received: by 10.216.90.136 with SMTP id e8mr2261637wef.110.1259736043786; Tue, 01 Dec 2009 22:40:43 -0800 (PST) In-Reply-To: <20091202014556.GS17756@tamriel.snowman.net> References: <20091129174504.545219cc@db> <20091129181833.5e00ce2e@db> <4B15BD22.3020307@postnewspapers.com.au> <20091202014556.GS17756@tamriel.snowman.net> Date: Wed, 2 Dec 2009 10:10:43 +0330 Message-ID: Subject: Re: Fwd: psql+krb5 From: rahimeh khodadadi To: Stephen Frost Cc: Craig Ringer , PG-General Mailing List Content-Type: multipart/alternative; boundary=0016e6dab0936693b20479b927e5 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200912/55 X-Sequence-Number: 156275 --0016e6dab0936693b20479b927e5 Content-Type: text/plain; charset=ISO-8859-1 I thanks from Stephen and Craig for their replying. I am sorry for doing cross posting, But I did not know about it before. I had to do for solving the problem, because no one did me answer . On Wed, Dec 2, 2009 at 5:15 AM, Stephen Frost wrote: > * 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 > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAksVxtQACgkQrzgMPqB3kihTAwCfYonsLsS1EirM+LQ89NbU+lXz > loQAn0dK1N6xco7Wdtq4m5SVPjMWaC9G > =zeD5 > -----END PGP SIGNATURE----- > > -- With Best Regards Miss.KHodadadi --0016e6dab0936693b20479b927e5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I thanks from Stephen and Craig for their replying.
I am sorry for doing= cross posting, But I did not know about it before. I had to do for solving= the problem, because no one did me answer .


On Wed, Dec 2, 2009 at 5:15 AM, Stephen Frost <sfrost@snowman.net> wrote:
=
* Craig Ringer (craig@postnewspapers.com.au) wrote:
> I've dropped all your cross-posts; this is just going to PgSQL-gen= eral.

Thanks for that.

> On 30/11/2009 3:29 PM, rahimeh khodadadi wrote:
>
>> psql: *krb5_sendauth: Bad application version was sent (via sendau= th)*
>
> Also: a search for your error message finds th= is 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 =3D 'postgres/star@EXAM= PLE.COM'

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

=A0PostgreSQL operates like a normal Kerberos service. The name of the
=A0service principal is servicename/hostname@realm.

=A0servicename can be set on the server side using the krb_srvname
=A0configuration parameter

The above should just be:

krb_srvname =3D 'postgres'

Or, better, just removed. =A0Unless you're running under a Microsoft Active Directory Kerberos environment, the default should 'just work= 9;.

Additionally, this is also almost certainly wrong:

krb_server_hostname =3D 'star'

Again, referring to the same documentation:

=A0hostname is the fully qualified host name of the server machine.

You really should have a proper FQDN set for this system. =A0I would also recommend using a real domain rather than 'EXAMPLE.COM'. =A0Also, I didn't
see the version of PostgreSQL, but if you're using something recent you= r
auth method should really be 'gss' instead of 'krb5'.

> I don't know much about Kerberos, not I suspect do all that many p= eople
> 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 w= ish I
could. =A0Kerberos with PG is actually a solution I typically recommend.
=A0 =A0 =A0 =A0Thanks,

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Stephen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksVxtQACgkQrzgMPqB3kihTAwCfYonsLsS1EirM+LQ89NbU+lXz
loQAn0dK1N6xco7Wdtq4m5SVPjMWaC9G
=3DzeD5
-----END PGP SIGNATURE-----




--
With Best RegardsMiss.KHodadadi
--0016e6dab0936693b20479b927e5--