pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-admin@postgresql.org
Subject: Re: Getting "ident" to work in Windows
Date: Fri, 04 May 2012 15:50:06 +0200
Message-ID: <jo0mnd$hg0$1@dough.gmane.org> (raw)
In-Reply-To: <CABUevExk_aiXmyOKqYDPJfhvc+bTqWfSVa9XcUOGVAB961cPqw@mail.gmail.com>
References: <jo0g4q$pq8$1@dough.gmane.org>
	<CABUevExk_aiXmyOKqYDPJfhvc+bTqWfSVa9XcUOGVAB961cPqw@mail.gmail.com>

Magnus Hagander, 04.05.2012 15:22:
>> I'm trying to enable "ident" authentication on my Windows machine using
>> PostgreSQL 9.1
>>
>> However as soon as I add the following line to pg_hba.conf
>>
>>    host    all             all             ::1/128            ident sameuser
>
> "sameuser" was removed in PostgreSQL 8.4. Now you just use "ident" if
> you want that behavior.

Thanks, I somehow missed that.

> It probably told you this in the logfile when you did reload - for
> security reasons, the details of the error are never given to an
> unauthenticated client.

No, I only got the could not load pg_hba.conf" error message.


>> Ideally I would like to make "ident" to work with a custom map but using
>> "ident tkmap". But that throws the same error which isn't really surprising
>> as "ident tkmap" is not working either.
>
> ident map=tkmap
>
> is what you want. See
> http://www.postgresql.org/docs/9.1/static/auth-methods.html#AUTH-IDENT

I still get an authentication error but probably that's because ident is indeed not available on Windows.
It's not that important as I just wanted to play around with it.


Thanks for the help.

Regards
Thomas

  





view thread (5+ messages)

Message-ID: <jo0mnd$hg0$1@dough.gmane.org>
Permalink:  ../jo0mnd$hg0$1@dough.gmane.org/
Also on:    postgresql.org/message-id/jo0mnd$hg0$1@dough.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Getting "ident" to work in Windows
  In-Reply-To: <jo0mnd$hg0$1@dough.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox