From: John DeSoi <desoi@pgedit.com>
To: Davenport, Julie <JDavenport@ctcd.edu>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: Hussey, Latasha <LHussey@ctcd.edu>
Subject: Re: problems logging in through phpPgAdmin
Date: Mon, 26 Sep 2011 16:06:34 -0400
Message-ID: <E7C495DD-ABA2-4B13-9769-25E605EE58A7@pgedit.com> (raw)
In-Reply-To: <53AA753E5EA4A14784092D825AD4FD3D046D655E@CTC3650D.campus.ctcd.org>
References: <53AA753E5EA4A14784092D825AD4FD3D046D6234@CTC3650D.campus.ctcd.org>
<671131D5-CF9A-4B19-8A4F-DC3352213E01@pgedit.com>
<53AA753E5EA4A14784092D825AD4FD3D046D64E2@CTC3650D.campus.ctcd.org>
<11CC03F4-DF27-480E-B447-287100732A6B@pgedit.com>
<53AA753E5EA4A14784092D825AD4FD3D046D655E@CTC3650D.campus.ctcd.org>
On Sep 26, 2011, at 3:16 PM, Davenport, Julie wrote:
> psql srn_mst
>
> and it will get me into the database whether I have the line set to trust or md5. And does not ask for a password either way (never does). This is how I always access the database from the command line.
Right, because you are trusting local connections and that is what is used because there is no -h option provided.
> When I tried the way you suggested:
>
> psql -U postgres -h 127.0.0.1 -d srn_mst
>
> if set to trust, this logs me in (does not ask for password of course).
> If set to md5, this command asks me for password, but when I put it in, gives me this error:
> psql: FATAL: password authentication failed for user "postgres"
> (same as what is happening through the application).
Which means that you don't really know the postgres password :). If you can't access postgres this way, it is not going to work with phpPgAdmin either. You can login using the local connection and then change the postgres password.
>
> Yes, PHP and phpPgAdmin and postgresql are all running on the same linux server (where this database srn_mst resides).
>
> This is the enry in my phppgadmin conf file config.inc.php for this server:
> // Soarapp
> $conf['servers'][3]['desc'] = 'Soarapp';
> $conf['servers'][3]['host'] = 'localhost';
> $conf['servers'][3]['port'] = 5432;
> $conf['servers'][3]['defaultdb'] = 'template1';
> $conf['servers'][3]['pg_dump_path'] = '/usr/bin/pg_dump';
> $conf['servers'][3]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
> Not sure if that is what your question refers to...
>
I was referring to the "host" setting. If you get the password fixed where it works with psql and it still does not work with phpPgAdmin, try changing the host setting to 127.0.0.1.
John DeSoi, Ph.D.
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-admin@postgresql.org
Cc: desoi@pgedit.com, JDavenport@ctcd.edu, LHussey@ctcd.edu
Subject: Re: problems logging in through phpPgAdmin
In-Reply-To: <E7C495DD-ABA2-4B13-9769-25E605EE58A7@pgedit.com>
References: <53AA753E5EA4A14784092D825AD4FD3D046D6234@CTC3650D.campus.ctcd.org> <671131D5-CF9A-4B19-8A4F-DC3352213E01@pgedit.com> <53AA753E5EA4A14784092D825AD4FD3D046D64E2@CTC3650D.campus.ctcd.org> <11CC03F4-DF27-480E-B447-287100732A6B@pgedit.com> <53AA753E5EA4A14784092D825AD4FD3D046D655E@CTC3650D.campus.ctcd.org> <E7C495DD-ABA2-4B13-9769-25E605EE58A7@pgedit.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