From: Kapoor, Nishikant X <Nishikant.X.Kapoor@nspco.com>
To: 'Amos Hayes' <ahayes@ingenia.com>
Cc: pgsql-interfaces@postgreSQL.org, "'pgsql-general@postgreSQL.org'" <pgsql-general@postgreSQL.org>
Subject: RE: [GENERAL] No DB connection in Netscape ? Please help.
Date: Fri, 14 Aug 1998 15:17:18 -0500
Message-ID: <C7DCBA49A357D11196A500805F851ACD0146165D@MNMAIL04> (raw)
Thanks so much, Amos. That worked and now I can connect to the database
from anywhere in the network using NS/applet.
Thanks to Cameron J. Mallory and Kenny Freeman for responding.
Keep it up, guys.
Nishi
> -----Original Message-----
> From: Amos Hayes [SMTP:ahayes@ingenia.com]
> Sent: Friday, August 14, 1998 2:05 PM
> To: Kapoor, Nishikant X
> Cc: pgsql-interfaces@postgreSQL.org
> Subject: Re: [GENERAL] No DB connection in Netscape ? Please
> help.
>
> On Fri, 14 Aug 1998, Kapoor, Nishikant X wrote:
>
> > Typing "mm01: netscape http://genx/PrfApplet.htm"; brings up the
> applet
> > in the NS
> > but the database connection is not established. The Java console
> shows:
> >
> > openDb(PrfDb):Connecting to Database URL = jdbc:postgresql:prfdb...
> > openDb(PrfDb): Could not connect. e= security.Couldn't connect to
> > 'localhost' with origin from 'genx'.
>
>
> > The same problems exits when I start NS from the same machine where
> the
> > PostgreSQL
> > server is running i.e. the Linux box(genx).
> >
> > *** But, when I use "genx: netscape http://127.0.0.1/PrfApplet.htm";
> on
> > genx, the
> > *** database connection gets established.
>
>
> I'm guessing that you have to configure postgress to allow connections
> from other hosts. In the fist case, you are comming from another
> machine
> and it won't let you in. In the second case, you are comming from the
> same
> machine but using the machine's hostname. In this case, your IP stack
> is
> telling itself that the connection is comming from your IP address not
> your localhost address, so it won't let that in either. The third try
> works because postgres is told that the connection is comming from
> 127.0.0.1 which it is (by default I assume) configured to accept.
>
> This is behaviour that I've seen for all sorts of other access control
> situations, so I'm guessing it's the problem here. If I'm not
> mistaken,
> you want to have a look at the pg_access man page and the pg_hba.conf
> file.
>
>
> --
> Amos Hayes Systems Architect
> ahayes@ingenia.com Ingenia Group - Software
> Kinetics Ltd.
> http://smurf.ingenia.com/~ahayeshttp://www.ingenia.com
>
> "Remember: No one can make you feel inferior without your consent."
> - ELEANOR ROOSEVELT
>
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-interfaces@postgresql.org
Cc: Nishikant.X.Kapoor@nspco.com, ahayes@ingenia.com, pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] No DB connection in Netscape ? Please help.
In-Reply-To: <C7DCBA49A357D11196A500805F851ACD0146165D@MNMAIL04>
References: <C7DCBA49A357D11196A500805F851ACD0146165D@MNMAIL04>
* 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