Re: pg_hba.conf and ident authentification

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Jozef KRSSAK <krssak(at)upc(dot)uniba(dot)sk>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_hba.conf and ident authentification
Date: 2001-04-12 22:50:35
Message-ID: Pine.LNX.4.30.0104130049160.1148-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jozef KRSSAK writes:

> 4. name of my account:
> krssak
>
> 5. pg_hba.conf:
> local rocnikovy trust
> host rocnikovy 127.0.0.1 255.255.255.255 ident map
>
> 6. pg_ident.conf:
> map krssak jozok
>
> 7. create user jozok;

> 9.
> krssak(at)pec:~$ psql -h localhost -d rocnikovy
> Connection to database 'rocnikovy' failed.
> IDENT authentication failed for user 'krssak'

You need to instruct psql to connect as database user 'jozok'. Otherwise
it will default to 'krssak' and your careful setup is for nought. See
option '-u'.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Raju Mathur 2001-04-13 03:50:24 [OT] PgSQL Feature List
Previous Message root 2001-04-12 13:01:21 Re: pg_hba.conf and ident authentification