X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id AC88D9DC951 for ; Thu, 5 Jan 2006 07:54:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60989-05 for ; Thu, 5 Jan 2006 07:54:03 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id DFCAD9DC812 for ; Thu, 5 Jan 2006 07:53:58 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id D5ECC1033E22; Thu, 5 Jan 2006 11:54:02 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60017-08; Thu, 5 Jan 2006 07:53:58 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id B84421033E1E; Thu, 5 Jan 2006 11:53:57 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000519 ] Does not pick up default username Content-type: text/plain; charset=UTF-8 Message-Id: <20060105115357.B84421033E1E@pgfoundry.org> Date: Thu, 5 Jan 2006 11:53:57 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-0.758 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.132, NO_REAL_NAME=0.55] X-Spam-Score: -0.758 X-Spam-Level: X-Archive-Number: 200601/24 X-Sequence-Number: 6839 Bugs item #1000519, was opened at 2006-01-05 12:53 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000519&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Magnus Hagander (mha) Assigned to: Nobody (None) Summary: Does not pick up default username Initial Comment: To use ODBC with Kerberos authentication, the connection needs to pick up the current username from the logged in user and use that for authentication. For normal libpq connections, this works fine if you just skip specifying the username completely. For ODBC connection, it crashes. Example vbscript: set conn = CreateObject("ADODB.Connection") conn.Open "Driver={PostgreSQL UNICODE};DATABASE=admin;SERVER=server.domain.se" This gives me the error: H:\t2.vbs(2, 1) Microsoft OLE DB Provider for ODBC Drivers: Operation was canceled. If I specify the username (mha) with "uid=mha", it works. A workaround is possible when connectingl ike above, because I can have my vbscript determine the userid and pass it along. But it's not possible with software using a global DSN that expect integrated login to work the same way as for SQLServer. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000519&group_id=1000125