From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Jim Mercer <jim(at)reptiles(dot)org>, pgsql-hackers(at)postgresql(dot)org, Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
Subject: | Re: hacker help: PHP-4.2.3 patch to allow restriction of |
Date: | 2002-09-27 10:49:27 |
Message-ID: | 1033123767.375.8.camel@lerlaptop.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, 2002-09-26 at 22:42, Tom Lane wrote:
> Jim Mercer <jim(at)reptiles(dot)org> writes:
> > as best i can understand, there is no way to get apach/php/pgsql configured
> > (using "PostgreSQL's native access mappings") that would disallow php code
> > in one virtual host from connecting to any database on the system.
>
> Betraying my ignorance of PHP here: what does a server supporting
> multiple virtual hosts look like from the database's end? Can we
> tell the difference at all between connections initiated on behalf
> of one virtual host from those initiated on behalf of another?
Nope, you can't to the best of my knowledge. You just get a standard
connect string. (Assuming NAME based vHosts here, which is what most
should be, modulo SSL based ones).
[snip]
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Andriy Tkachuk | 2002-09-27 11:46:43 | Re: query speed depends on lifetime of frozen db? |
Previous Message | Mats Lofkvist | 2002-09-27 10:49:17 | Re: Performance while loading data and indexing |