| From: | Maarten Boekhold <maartenb(at)dutepp0(dot)et(dot)tudelft(dot)nl> | 
|---|---|
| To: | "Shawn T(dot) Walker" <swalker(at)iac(dot)net> | 
| Cc: | Chris Hardie <chris(at)summersault(dot)com>, M(dot)Boekhold(at)ITS(dot)TUDelft(dot)NL, pgsql-general(at)postgreSQL(dot)org | 
| Subject: | Re: [GENERAL] Postgres CGI Security Problem | 
| Date: | 1998-08-09 09:09:34 | 
| Message-ID: | Pine.SUN.3.91.980809110744.280A-100000@dutepp0.et.tudelft.nl | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
On Sat, 8 Aug 1998, Shawn T. Walker wrote:
> Chris,
> 
> 	Have you considered using the Perl DBI module.  It will let
> you connect to a database with a username and a password. 
> 
> Chris Hardie writes:
>  > In anycase, I'm using the Postgres.pm module with PERL, and it doesn't
>  > seem to support the passing of a username/password pair (correct me if I'm
>  > wrong) from a CGI script.  I'll attempt to code that, unless someone has
>  > done it already.
Actually Pg.pm *does* allow you to connect with a username/password. If
you use the 'new-style' methods of Pg.pm, do $db->connect("dbname=.. user=..
password=..");. If you use the 'old-style' (like I do), use PQconnectdb() 
with the same arguments.
Maarten
_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems  |
|                   Department of Electrical Engineering                    |
|           Computer Architecture and Digital Technique section             |
|                          M(dot)Boekhold(at)et(dot)tudelft(dot)nl                         |
-----------------------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sferacarta Software | 1998-08-09 13:12:49 | Re: [GENERAL] CREATE TABLE ... CONSTRAINT | 
| Previous Message | Przemyslaw Bak | 1998-08-09 07:34:04 | Core's |