Received: from cncware.whidbey.com (IDENT:root@cncware.whidbey.com [208.25.171.37]) by hub.org (8.9.2/8.9.1) with ESMTP id NAA06764 for ; Fri, 19 Feb 1999 13:14:24 -0500 (EST) (envelope-from ken@ori-ind.com) Received: from ken (ken.cncware.com [192.168.61.201]) by cncware.whidbey.com (8.8.7/8.8.7) with SMTP id KAA16739; Fri, 19 Feb 1999 10:14:03 -0800 Message-Id: <3.0.32.19990219101605.00856560@ren.cncware.com> X-Sender: ken_ori@ren.cncware.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Fri, 19 Feb 1999 10:16:07 -0800 To: Byron Nikolaidis From: "Ken J. Wright" Subject: Re: [INTERFACES] ODBC authentication failure Cc: pgsql-interfaces@postgreSQL.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 11:12 AM 2/19/99 -0500, you wrote: > > >Ken J. Wright wrote: > >> Hello Byron, >> >> Attached is the tracelog from an attempted ODBC connect. >> This occurs whenever authentication fails during an attempt to connect >> (using ODBCExpress). I believe I should get a connection dialog, but it >> fails instead. I have tried different hdbc prompt settings & also different >> pg_hba.conf settings, but basically the same thing happens whenever >> authentication fails for any reason. The trace indicates that this is >> another ODBC2.0 vs. ODBC3.0 issue. Would you agree? And more importantly, >> how do I, you, we fix it? I can certainly (and do currently) just trap the >> error and deal with it through my own dialog box, but I was hoping to also >> be able to rely on the fallback of the driver handling the prompting. >> Comments? >> > >Looking at the log, I see what you mean about the odbc behavior stuff. But, >when a connect attempt fails, if its because the connection could not be >physically made OR the authentication is wrong, the driver will return an error >from SQLDriverConnect. So it seems to working as designed, even with the >warning message in the log. That warning message is what threw up the red flag. >The only time the driver will prompt the user is if a password is required to >connect, and one was not provided. Ok. You are referring to as required by the SQlDriverConnect setting? >In order to do what you say, I would need to examine the error message that >comes back. If its an authentication related problem, then prompt the user >with a dialog box. Probably very low priority in the scope of things. Maybe best left alone, as every app has it's own flavor of login dialog anyway. The driver dialog is more suited to datasource maintenance and can be a bit confusing to a *normal* user. Thanks, Ken