postgres ident authentication failed

Solution 1:

This article and its comments might help:

“FATAL: Ident authentication failed”, or how cool ideas get bad usage schemas

Solution 2:

change IPv4 local connections to trust in pg_hba.conf.

# IPv4 local connections:
host    all         all         127.0.0.1/32          trust

i hope it helps you...