From: Chris Gamache <cgg007@yahoo.com>
To: pg <pg@newhonest.com>
To: pgsql-odbc@postgresql.org
Subject: Re: password leak in mylog thru win odbc
Date: Wed, 19 Mar 2003 07:31:24 -0800 (PST)
Message-ID: <20030319153124.68964.qmail@web13801.mail.yahoo.com> (raw)
In-Reply-To: <000b01c2eddf$df355720$2101a8c0@newhonest.com>
Several suggestions:
Use a different authentication method like Ident... That won't work if you've
already implimented a widespread password authentication system, though.
Modify the code to the ODBC driver to obscure the password from logs. That
might make it hard to troubleshoot authentication issues, though. It also won't
help if you're distributing this application. All the user would have to do is
to install a different pgodbc driver without the obscured logfiles, and you're
back to square one.
Upgrade to Windows 2000/XP and put the logfile in a directory with write-only
access for the system account that ODBC runs under (system I think... don't
take my word for it, though) and only allow reading by administrator or your
super user account... That won't help if you're distributing an application.
Ditch ODBC altogether and use pgExpress from www.vitavoom.com. It uses libpq
for native access to PostgreSQL. There are no hooks for the user to get into
there, AFAIK...
HTH,
CG
--- pg <pg@newhonest.com> wrote:
> I'm using Win ME. I'm trying to write a program in VB and connects to PG
> with super-user account (or with a "connection user" with many rights). The
> detail user rights are embeded in the VB program for detail control, so that
> no one should know the connection user. Users only knows their own password
> for that VB program, so their password is only useful with that VB program.
>
> But if a user enable the mylog in odbc, the password (pwd) shows up there in
> mylogxxxxx.
>
> What can I do to hide the password?
>
> -Jason
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
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: cgg007@yahoo.com, pg@newhonest.com
Subject: Re: password leak in mylog thru win odbc
In-Reply-To: <20030319153124.68964.qmail@web13801.mail.yahoo.com>
References: <000b01c2eddf$df355720$2101a8c0@newhonest.com> <20030319153124.68964.qmail@web13801.mail.yahoo.com>
* 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