pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniele Orlandi <daniele@orlandi.com>
To: PGsql <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] connecting with password
Date: Fri, 11 Sep 1998 04:31:10 +0200
Message-ID: <35F88B6E.7F0D9944@orlandi.com> (raw)
References: <Pine.LNX.3.96.980910211731.1543H-100000@toots.palaver.net>

Eric McKeown wrote:
> 
> Is there any way to set up special password protections for a Postgres
> database, so that I can force someone to present a username and password
> when connecting from a PHP script?  I've combed the docs for something on
> this, and I may just be completely off base on the feasibility.
> 
> Comments appreciated...

I use this to connect with username/password:

$conn=pg_pconnect("host=localhost dbname=db user=me password=foobar");

Not very documented, found with a bit of luck....

Bye!

-- 
 Daniele

-------------------------------------------------------------------------------
"On the Internet, no one knows you're using Windows NT"
(Submitted by Ramiro Estrugo, restrugo@fateware.com)
-------------------------------------------------------------------------------
 Se telecom italia aggiungesse uno scatto al giorno ad ogni abbonato, dal
 primo Gennaio avrebbe rubato 803.726.000.000 Lire.
-------------------------------------------------------------------------------
 Daniele Orlandi - Utility Line Italia - http://www.orlandi.com
 Via Mezzera 29/A - 20030 - Seveso (MI) - Italy
-------------------------------------------------------------------------------



view thread (4+ messages)  latest in thread

Message-ID: <35F88B6E.7F0D9944@orlandi.com>
Permalink:  ../35F88B6E.7F0D9944@orlandi.com/
Also on:    postgresql.org/message-id/35F88B6E.7F0D9944@orlandi.com

 · 

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-sql@postgresql.org
  Cc: daniele@orlandi.com
  Subject: Re: [SQL] connecting with password
  In-Reply-To: <35F88B6E.7F0D9944@orlandi.com>
  References: <Pine.LNX.3.96.980910211731.1543H-100000@toots.palaver.net> <35F88B6E.7F0D9944@orlandi.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