From: Stephen Frost <sfrost@snowman.net>
To: John Slattery <johntslattery@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: GSSAPI Authentication Problem
Date: Fri, 3 Aug 2012 12:54:28 -0400
Message-ID: <20120803165428.GH1267@tamriel.snowman.net> (raw)
In-Reply-To: <CA+hybRVht9_6HfTSa+5P-_0VCfrd8qUXq3XxFTNWdmBu0KFc7w@mail.gmail.com>
References: <CA+hybRXOLR4JHCG=PU4WkTPJkShEne-gBXuaXE604NAeQ78h0A@mail.gmail.com>
<20120803135146.GG1267@tamriel.snowman.net>
<CA+hybRVht9_6HfTSa+5P-_0VCfrd8qUXq3XxFTNWdmBu0KFc7w@mail.gmail.com>
John,
* John Slattery (johntslattery@gmail.com) wrote:
> At your suggestion, I opened the ODBC data source administrator in
> Windows XP and attempted to create a user DSN using all of the default
> values and providing 'Database', 'Server', and 'User Name'. In this
> case 'User Name' was the Active Directory user name. When I pressed
> the 'Test' button, I received the same exception I noted in my initial
> post. I repeated the test with logging turned on. Nothing seems to
> have been recorded about the failed test. The log file is attached.
No, you should be using the PG username of the user in PG that you want
to connect as in the ODBC driver, not the AD username.
Specifics would help here, I think. For example-
If the AD user is "joe@REALM.COM", one PG user is "joe", and the user
that you want to actually log into the database as is "smith", then you
need this:
pg_ident mapping joe@REALM.COM (or just "joe" if you're having PG strip
the realm) to "smith".
Log into Windows as "joe@REALM.COM".
Use "smith" in the "User Name" field in the ODBC manager
> Could it be that when the only means of authentication enabled in
> pg_hba.conf is gss that having anything in 'User Name' is a problem?
No.
If you can provide actual specifics regarding the above, and excerpts
from your pg_ident.conf, PostgreSQL logs, pg_hba.conf, and the
client-side logs, I think that would go a long way to figuring this out.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 197B) download
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, johntslattery@gmail.com
Subject: Re: GSSAPI Authentication Problem
In-Reply-To: <20120803165428.GH1267@tamriel.snowman.net>
References: <CA+hybRXOLR4JHCG=PU4WkTPJkShEne-gBXuaXE604NAeQ78h0A@mail.gmail.com> <20120803135146.GG1267@tamriel.snowman.net> <CA+hybRVht9_6HfTSa+5P-_0VCfrd8qUXq3XxFTNWdmBu0KFc7w@mail.gmail.com> <20120803165428.GH1267@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