ident authorization (was backup: pg_dumpall and full backups in general)

From: Dado Feigenblatt <dado(at)wildbrain(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: ident authorization (was backup: pg_dumpall and full backups in general)
Date: 2001-11-29 00:41:35
Message-ID: 3C05843F.2000203@wildbrain.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Tom,

I followed your sugestion and got identd up and running on the server.
It seems to be working fine.
I think my problem now is with pg_hba.conf and pg_ident.conf.
During a psql session I can't switch to another user using

template1=\connect dado_test dado
IDENT authentication failed for user 'dado'
Previous connection kept

I thought it was because I was using the "sameuser" map in pg_hba.conf

host all 127.0.0.1 255.255.255.255 ident sameuser

So I changed the map name pg_hba.conf

host all 127.0.0.1 255.255.255.255 ident usermap

and added to pg_ident.conf the other user names postgres might have to
switch to

usermap postgres postgres
usermap postgres purp
usermap postgres dado
usermap postgres greg

I still get the same error.
Any idea?

Thanks.

Tom Lane wrote:

>Dado Feigenblatt <dado(at)wildbrain(dot)com> writes:
>
>>[ problems with pg_dumpall and password protection ]
>>
>
>Password protection just doesn't play very nicely with dump scripts.
>Especially not scripts you'd like to invoke from cron jobs.
>I'd strongly recommend setting up a different authorization method.
>
>One way that's reasonably secure is to run an ident server (non-broken
>one of course) and enable ident authorization over local loopback only.
>Then a simple "export PGHOST=127.0.0.1" frees you from entering any
>more passwords.
>
> regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

--
Dado Feigenblatt Wild Brain, Inc.
Technical Director (415) 216-2053
dado(at)wildbrain(dot)com San Francisco, CA.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dado Feigenblatt 2001-11-29 00:42:08 pg_dump and order of events
Previous Message Joseph Shraibman 2001-11-29 00:14:52 Re: error on drop table