Skip site navigation (1) Skip section navigation (2)

Re: requiring a password to connect

From: Chris <csmith(at)squiz(dot)net>
To: "charlie derr" <wrong(at)crosswinds(dot)net>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: requiring a password to connect
Date: 2001-06-27 23:14:02
Message-ID: 5.1.0.14.0.20010628091145.02862ec0@cooee.cybersydney.com.au (view raw or flat)
Thread:
Lists: pgsql-novice
Hey,
Apart from the other suggestions, it might be that your web-server owner 
has a user in pgsql, with no password. I doubt this is the case, but 
thought I'd mention it anyway :)

>         I am using postgresql in conjunction with php.  The following 
> code works to
>establish a database connection:
>
>$db = pgConnect("dbname=mydb user=myuser");
>
>
>         I would prefer it if this would fail to connect.  Is there a 
> command line
>switch I can use to start the postmaster that will require a password to be
>passed in the connection string?  Or do I need to recompile postgresql with
>a particular option to achieve the desired behavior?  I have experienced the
>above on 6.5.3, 7.0.2 and 7.1.2.
>
>         Thank you very much for your time,
>                 ~c

-----------------
      Chris Smith
http://www.squiz.net/


In response to

pgsql-novice by date

Next:From: Stoffel van AswegenDate: 2001-06-28 11:36:45
Subject: JDBC driver/connection
Previous:From: Nabil SayeghDate: 2001-06-27 22:09:26
Subject: Re: Re: exploring data

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group