pgAdmin requires password

Поиск
Список
Период
Сортировка
Искать

pgAdmin requires password

От:
"Prichard, Jayson S (TS)" <jayson.prichard@ngc.com>
Дата:

I have modified the C:\Program Files\PostgreSQL\8.4\data\pg_hba.conf file to allow anyone to access any database without a password:

 

host    all         all         127.0.0.1/32          trust

 

The problem is, when I start pgAdmin, it requests the password for user postgres.  I thought the pg_hba.conf file would eliminate the need for the password for pgAdmin.

 

Jayson Prichard

Northrop Grumman

Warner Robins Avionics Engineering Sustainment Center
Senior Software Engineer
293 Highway 247 South
Warner Robins, Ga. 31088
478.929.7349

Re: pgAdmin requires password

От:
Dave Page <dpage@pgadmin.org>
Дата:
On Wed, Sep 9, 2009 at 3:56 PM, Prichard, Jayson S
(TS) wrote:
> I have modified the C:\Program Files\PostgreSQL\8.4\data\pg_hba.conf file to
> allow anyone to access any database without a password:
>
>
>
> host    all         all         127.0.0.1/32          trust
>
>
>
> The problem is, when I start pgAdmin, it requests the password for user
> postgres.  I thought the pg_hba.conf file would eliminate the need for the
> password for pgAdmin.

pgAdmin has no idea that a password isn't required until the
connection is attempted. Just save an empty (or any other password)
and it shouldn't ask again (unless the connection fails for some
reason).

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

Re: pgAdmin requires password

От:
Dave Page <dpage@pgadmin.org>
Дата:
On Wed, Sep 9, 2009 at 7:54 PM, Prichard, Jayson S
(TS) wrote:
> Dave,
>
> That was my suggestion: if PostgreSQL uses the pg_hba.conf file for authentication, perhaps pgAdmin should/could as well.

It has no idea where it is until a connection is established - and in
most cases couldn't access it until then, even if it remembered from a
previous session (and wouldn't know if you'd revoked 'trust' in the
meantime).

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

FAQ