pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1000519 ] Does not pick up default username
Date: Thu,  5 Jan 2006 19:41:37 +0000 (GMT)
Message-ID: <20060105194137.8C6431033DE1@pgfoundry.org> (raw)

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: Accepted
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.

----------------------------------------------------------------------

>Comment By: Ludek Finstrle (luf)
Date: 2006-01-05 20:41

Message:
I have no kerberos here. So I can't reproduce the problem.
I need you attach mylog output for unsuccessful login.

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000519&group_id=1000125



view thread (4+ messages)  latest in thread

Message-ID: <20060105194137.8C6431033DE1@pgfoundry.org>
Permalink:  ../20060105194137.8C6431033DE1@pgfoundry.org/
Also on:    postgresql.org/message-id/20060105194137.8C6431033DE1@pgfoundry.org

 · 

reply

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: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1000519 ] Does not pick up default username
  In-Reply-To: <20060105194137.8C6431033DE1@pgfoundry.org>
  References: <20060105194137.8C6431033DE1@pgfoundry.org>

* 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