Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id C5B2613C6999 for ; Fri, 4 May 2012 10:49:01 -0300 (ADT) Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SQIsV-00066q-Ge for pgsql-admin@postgresql.org; Fri, 04 May 2012 13:49:00 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SQIsG-000775-LD for pgsql-admin@postgresql.org; Fri, 04 May 2012 15:48:44 +0200 Received: from 217.110.94.67 ([217.110.94.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2012 15:48:44 +0200 Received: from spam_eater by 217.110.94.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2012 15:48:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Thomas Kellerer Subject: Re: Getting "ident" to work in Windows Date: Fri, 04 May 2012 15:50:06 +0200 Lines: 40 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.67 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: -0.7 (/) X-Archive-Number: 201205/27 X-Sequence-Number: 39516 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