I am trying to get tinyRSS running on my own server using PostgreSql. However I keep getting this error:
LOG: provided user name (tinyrss) and authenticated user name (apache) do not match
FATAL: Peer authentication failed for user "tinyrss"
I understand that postgresql uses host based authentication and since I do not have the same account name(tinyrss) as the host machine I needed to use a username map so I added this line into pg_ident.conf
:
# MAPNAME SYSTEM-USERNAME PG-USERNAME
tinyrss hongyi tinyrss
and under pg_hba.conf
:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
# local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 ident map=tinyrss
# IPv6 local connections:
host all all ::1/128 ident
Can I know what I am doing wrong and the solution to this? Thanks in advance!
ident
withtrust
inpg_hba.conf
and try again