Re: [BUG] SSPI authentication fails on Windows when server parameter is localhost or domain name

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Ahmed Shinwari <ahmed(dot)shinwari(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [BUG] SSPI authentication fails on Windows when server parameter is localhost or domain name
Date: 2011-06-15 11:16:01
Message-ID: BANLkTimjbg8qa+kS5dNqys8XzY8HP3FXGw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 15, 2011 at 10:53 AM, Ahmed Shinwari
<ahmed(dot)shinwari(at)gmail(dot)com> wrote:
> Hi All,
>
> I faced a bug on Windows while connecting via SSPI authentication. I was
> able to find the bug and have attached the patch. Details listed below;
>
> Postgres Installer: Version 9.0.4
> OS: Windows Server 2008 R2/Windows 7
>
> Bug Description:
> =============
> If database Server is running on Windows ('Server 2008 R2' or 'Windows 7')
> with authentication mode SSPI and one try to connect from the same machine
> via 'psql' with server parameter as 'localhost' or 'fully qualified domain
> name', the database throws error;

I've been able to reproduce this issue, and the patch does indeed fix
it. One of our customers has also confirmed it fixed it for them.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2011-06-15 11:43:35 testing nested case-when scoping
Previous Message Heikki Linnakangas 2011-06-15 10:46:34 Re: Small SSI issues