Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XvuFc-0003Dt-LU for pgsql-general@arkaria.postgresql.org; Tue, 02 Dec 2014 20:40:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XvuFc-0000X5-5P for pgsql-general@arkaria.postgresql.org; Tue, 02 Dec 2014 20:40:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XvuFa-0000Ug-PA for pgsql-general@postgresql.org; Tue, 02 Dec 2014 20:40:46 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XvuFX-0005TF-7W for pgsql-general@postgresql.org; Tue, 02 Dec 2014 20:40:45 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 390F222331 for ; Tue, 2 Dec 2014 15:40:42 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Tue, 02 Dec 2014 15:40:42 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= x-sasl-enc:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=3jekMMPapS/MD7F+n+QqrKk/lBM=; b=lrwBWwK6Qi7nPloFJp MHYnXSKgyCQVLtkw6Xp1G3gF+bVZCVH2CJe4i+bptWXzXs6gl9zSZLpV6s5x00tt IWW2VKmHNc27VD/M1eIO6q8dMR2oM4WbePA9j2zkbCJGdFqIJZ8MIn35paQnBOuZ L9n5FSmERXeYZ05yafCtWPGDM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=3jekMMPapS/MD7F+n+QqrK k/lBM=; b=FbKrwhSmdxzGnyX70wXpfzuCrteSujFUcJ7HGDJT7pdSc9nP+GcaMh gDe/q8nf0JHjxR1IccKsOPQe+rUGieQ9U0UfQp9hMh0WfbEjh7pLogY1o3oySBTx CosYEGPaRVAj1hm969CqWLDwqoCbWOoEO37TjDokQ3cm6elQ+JmVY= X-Sasl-enc: /GN8MNXJh3/8nvOvHS4Y6xKD3VzgkmjlNGDOU0I+LOKy 1417552841 Received: from killi.site (unknown [24.17.179.185]) by mail.messagingengine.com (Postfix) with ESMTPA id BB39EC00287; Tue, 2 Dec 2014 15:40:41 -0500 (EST) Message-ID: <547E23C9.8060404@aklaver.com> Date: Tue, 02 Dec 2014 12:40:41 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Dave Rosckes , pgsql-general@postgresql.org Subject: Re: Trying to get SSPI/JDBC working References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 12/02/2014 08:10 AM, Dave Rosckes wrote: > I am new to Postgresql. I have a postgres server running on a windows > platform. The DBs will not have any remote access, only users logged > onto the localhost will have access. SSPI seems like a great > authentication protocol to use in this case. > > I believe I have followed all the instructions on how to get this to work: > > Postgresql: postgresql-9.3.4-4-windows-x64 > > Updated pg_hba.conf to have the following lines: > host all all 127.0.0.1/32 > sspi > host all all ::1/128 md5 > > Created role that matches userid via pgAdmin III > > JDBC connection url: > "jdbc:postgresql://localhost/postgresDB?integratedSecurity=true" > JDBC jar: postgresql-9.3-1100.jdbc4.jar > > Looking in the pglog all I see is: > > CST FATAL: SSPI authentication failed for user "roscked" > CST DETAIL: Connection matched pg_hba.conf line 80: "host > all all 127.0.0.1/32 sspi" > > The exception I see: > > org.postgresql.util.PSQLException: GSS Authentication failed Is there more to the exception, like maybe a traceback? Is there anything in the Windows system logs that would help? > > Any guidance on how to get more information on the failure, or > suggestion on what I am doing wrong would be greatly appreciated. -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general