Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 17EF7930E1F for ; Fri, 3 Aug 2012 13:54:45 -0300 (ADT) Received: from cl-174.chi-02.us.sixxs.net ([2001:4978:f:ad::2] helo=tamriel.snowman.net) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SxL98-0005sK-3R for pgsql-odbc@postgresql.org; Fri, 03 Aug 2012 16:54:44 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E956C229EE; Fri, 3 Aug 2012 12:54:28 -0400 (EDT) Date: Fri, 3 Aug 2012 12:54:28 -0400 From: Stephen Frost To: John Slattery Cc: pgsql-odbc@postgresql.org Subject: Re: GSSAPI Authentication Problem Message-ID: <20120803165428.GH1267@tamriel.snowman.net> References: <20120803135146.GG1267@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="shPu4Thdtpf20Fxf" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.2.0-1-amd64 (x86_64) X-Uptime: 12:48:43 up 158 days, 22:54, 7 users, load average: 0.14, 0.10, 0.07 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/6 X-Sequence-Number: 10915 --shPu4Thdtpf20Fxf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --shPu4Thdtpf20Fxf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlAcAkQACgkQrzgMPqB3kijoXQCeKUshS5eeB1gF2JAzv7a5UHq5 79AAn0BmDXmvM9/gaIQFmhmIEYhBshOx =NhIy -----END PGP SIGNATURE----- --shPu4Thdtpf20Fxf--