Re: pg_hba.conf + all + trust = Ident authentication failed for user "postgres"

From: "Andy Shellam" <andy(dot)shellam(at)mailnetwork(dot)co(dot)uk>
To: "'ow'" <oneway_111(at)yahoo(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_hba.conf + all + trust = Ident authentication failed for user "postgres"
Date: 2006-03-06 15:06:45
Message-ID: !&!AAAAAAAAAAAuAAAAAAAAALfqleqaijxJlxu+E5RYF+YBAJaQ0jfg6zBFp7poaER6UCkAAAGy3PcAABAAAACvQ3V5USSpSofY3zlaXq8DAQAAAAA=@mailnetwork.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

To me it would suggest that pgSQL is not looking at the pg_hba.conf you
think it is - as it shouldn't prompt for a password when trust
authentication is set (it doesn't on my box when connecting via a socket.)

Also you mention that your listen_address looks like "#listen_addresses" -
in which case it's commented out, and so PG would *NOT* listen on TCP/IP, so
you shouldn't be able to connect using -h localhost - you should get
"connection refused".

I think you've got a case of duplicate config files on your system and PG is
looking at different files to the ones you're editing.

Might be worth running "find / -name pg_hba.conf" and "find / -name
postgresql.conf" to see where all the instances of your config files lie.

Something's not quite right...

Andy

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of ow
Sent: Monday, 06 March, 2006 1:59 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] pg_hba.conf + all + trust = Ident authentication failed
for user "postgres"

In postgresql.conf I have "#listen_addresses = 'localhost'" and I am logged
in
directly into the box, without telnet, ssh or whatever.

But "psql -U postgres -h localhost" DID WORK (after I entered the password)
and
that's a big step forward, thanks.

I'm still not sure why I needed to enter the password, though... my idea of
"trust" is somewhat different...

--- Andy Shellam <andy(dot)shellam(at)mailnetwork(dot)co(dot)uk> wrote:

> No you're right, there shouldn't be anything in pg_ident.conf.
>
> Check in your postgresql.conf file, and set "listen_interfaces" to *, so
it
> listens on TCP/IP (if not already.)
>
> Then try connecting with "psql -U postgres -h localhost" and see if that
> lets you on. Also check your postgresql.conf file is not forcing pgSQL to
> look elsewhere for your config files.
>
> Andy
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

!DSPAM:14,440c406f49419332837813!

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message ow 2006-03-06 15:45:58 Re: [SOLVED] pg_hba.conf + all + trust = Ident authentication failed
Previous Message Stephan Szabo 2006-03-06 15:05:46 Re: pg_hba.conf + all + trust = Ident authentication failed