Re: ident auth not working on 7.3.1

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Scott Lamb <slamb(at)slamb(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ident auth not working on 7.3.1
Date: 2002-12-22 23:23:42
Message-ID: 1040599422.5700.10.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 2002-12-22 at 21:45, Scott Lamb wrote:
> I can't get ident auth to work on 7.3.1. I'm using Linux 2.4 (RedHat 7.3).

> [postgres(at)calvin data]$ egrep '^[^#]' pg_hba.conf
> local all all ident
^^^^^^^^
missing parameter, e.g., sameuser

> [postgres(at)calvin slamb]$ id
> uid=26(postgres) gid=26(postgres) groups=26(postgres)
> [postgres(at)calvin slamb]$ psql template1
> psql: FATAL: IDENT authentication failed for user "postgres"
>
> What could cause this?

You haven't added the map parameter after "ident". Try "ident
sameuser", so that anyone can connect to PostgreSQL using his Unix login
(provided that he has also been created as a PostgreSQL user).

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"And there were in the same country shepherds abiding
in the field, keeping watch over their flock by night.
And, lo, the angel of the Lord came upon them, and the
glory of the Lord shone around them; and they were
sore afraid. And the angel said unto them, " Fear not;
for behold I bring you good tidings of great joy which
shall be to all people. For unto you is born this day
in the city of David a Saviour, which is Christ the
Lord." Luke 2:8-11

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Lamb 2002-12-22 23:35:27 Re: ident auth not working on 7.3.1
Previous Message Nic Ferrier 2002-12-22 23:00:48 Re: Stored procedures/functions that can return recordsets...