Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 52287930E1E for ; Fri, 3 Aug 2012 10:52:09 -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 1SxIIO-00010q-Nt for pgsql-odbc@postgresql.org; Fri, 03 Aug 2012 13:52:08 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id AB7A122B15; Fri, 3 Aug 2012 09:51:46 -0400 (EDT) Date: Fri, 3 Aug 2012 09:51:46 -0400 From: Stephen Frost To: John Slattery Cc: pgsql-odbc@postgresql.org Subject: Re: GSSAPI Authentication Problem Message-ID: <20120803135146.GG1267@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OnLZP8++76A0zDPH" 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: 09:50:41 up 158 days, 19:56, 7 users, load average: 0.05, 0.03, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/4 X-Sequence-Number: 10913 --OnLZP8++76A0zDPH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable John, The ODBC driver can be configured through the ODBC manager and you can provide the username that you want to log in as there. The ODBC driver (and the libpq underneath) should still be able to use your AD/GSSAPI credentials to authenticate. Thanks, Stephen * John Slattery (johntslattery@gmail.com) wrote: > Hi, >=20 > I would like to report what seems like a problem with the driver. It > doesn't seem possible to override the default user name for > authentication by GSSAPI. I'm using a map in pg_ident.conf since my > Active Directory user name isn't the same as my Postgresql user name. > pgAdmin III and psql allow for this, the former by setting Username in > the GUI to my Postgresql user name and the latter by specifying the -U > option. I tried setting UID in the connection string I am using to my > Postgresql user name but that caused the driver to return the > following exception: >=20 > Run-time error '-2147217843 (800040e4d)': > Service negotiation failed; > The specified target is unknown or unreachable in > DoKerberosEtcProcessAuthentication:PerformKerberosEtcClientHandSh >=20 > The connection string that produces this exception is: >=20 > DRIVER=3D{PostgreSQL > ANSI};DATABASE=3Ddb;SERVER=3Dpostgresql.my-company.org > ;PORT=3D5432;UID=3Djohn;PWD=3D;SSLmode=3Ddisable;ReadOnly=3D0;Protocol=3D= 7.4-1;FakeOidIndex=3D0;ShowOidColumn=3D0;RowVersioning=3D0;ShowSystemTables= =3D0;ConnSettings=3D;Fetch=3D100;Socket=3D4096;UnknownSizes=3D0;MaxVarcharS= ize=3D255;MaxLongVarcharSize=3D8190;Debug=3D0;CommLog=3D0;Optimizer=3D0;Ksq= o=3D1;UseDeclareFetch=3D0;TextAsLongVarchar=3D1;UnknownsAsLongVarchar=3D0;B= oolsAsChar=3D0;Parse=3D0;CancelAsFreeStmt=3D0;ExtraSysTablePrefixes=3Ddd_;;= LFConversion=3D1;UpdatableCursors=3D1;DisallowPremature=3D0;TrueIsMinus1=3D= 0;BI=3D0;ByteaAsLongVarBinary=3D0;UseServerSidePrepare=3D0;LowerCaseIdentif= ier=3D0;GssAuthUseGSS=3D0;XaOpt=3D1 >=20 > I'm using it in a Visual Basic 6 project. >=20 > The version of the driver is 9.1.1.0. The database version is 8.4 from > Debian 6. Please find mylog_408.log attached. >=20 > Thank you for taking a look at this. >=20 > John >=20 > --=20 > Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-odbc --OnLZP8++76A0zDPH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlAb13IACgkQrzgMPqB3kigy+QCeKS3sHcJ904vTn2VshPQg0OnT myQAnj1hIRFINVsO2c2uguHqW3bZWLX4 =ft3v -----END PGP SIGNATURE----- --OnLZP8++76A0zDPH--