Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRljl-0006kY-Td for pgsql-general@arkaria.postgresql.org; Wed, 20 Dec 2017 21:17:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRljl-0000bv-0t for pgsql-general@arkaria.postgresql.org; Wed, 20 Dec 2017 21:17:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eRljk-0000bl-6W for pgsql-general@lists.postgresql.org; Wed, 20 Dec 2017 21:17:12 +0000 Received: from omr-m011e.mx.aol.com ([204.29.186.11]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eRljb-0002iL-PL for pgsql-general@lists.postgresql.org; Wed, 20 Dec 2017 21:17:09 +0000 Received: from mtaomg-mbc02.mx.aol.com (mtaomg-mbc02.mx.aol.com [172.26.221.144]) by omr-m011e.mx.aol.com (Outbound Mail Relay) with ESMTP id 8939A3800040; Wed, 20 Dec 2017 16:17:01 -0500 (EST) Received: from core-mee05b.mail.aol.com (core-mee05.mail.aol.com [172.27.117.15]) by mtaomg-mbc02.mx.aol.com (OMAG/Core Interface) with ESMTP id CCA3D38000083; Wed, 20 Dec 2017 16:16:59 -0500 (EST) Received: from 68.10.102.85 by webjas-vae016.srv.aolmail.net (10.96.23.19) with HTTP (WebMailUI); Wed, 20 Dec 2017 16:16:59 -0500 Date: Wed, 20 Dec 2017 16:16:59 -0500 From: Mike Feld To: mailinglist@unix-solution.de Cc: pgsql-general@lists.postgresql.org Message-Id: <16075c95f0c-1715-25836@webjas-vae016.srv.aolmail.net> Subject: Re: psycopg2 and java gssapi questions MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_199579_1383892214.1513804619532" X-MB-Message-Source: WebUI X-MB-Message-Type: User X-Mailer: JAS STD X-Originating-IP: [68.10.102.85] x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1513804621; bh=k8IqTDlXGTJl1fxGMaxGORWNwCqEMBMogw9SD+G7GAA=; h=From:To:Subject:Message-Id:Date:MIME-Version:Content-Type; b=1/K/eTcsFyL/BQiQZnA2ehT4VFoHVJd4Sq3i1+I4vaHZ/1LipDsFaBFv0CNsZrm1g 0Wr9oPM1QUnkMlCWyU1t2ZnI8mBzxY1/kMQohTpcLEKsyJ1yceQENOf+knuCk+iUaN UOjGfNjEk9EJZNk3O0yBfblyyGpO4d9Wf+awnXs8= x-aol-sid: 3039ac1add905a3ad34b2279 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_199579_1383892214.1513804619532 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This shows you how to setup GSSAPI authentication server side, which I have= already done and have working. My question is from client side, without a = human logged in to generate the ticket. >>Hello, >>have a look at >>https://www.postgresql.org/docs/current/static/auth-methods.html >>There are details about LDAP and GSSAPI. >>On 20.12.2017 20:42, Mike F wrote: >>> Is it possible to authenticate with Postgres from a standalone >>> application using gssapi? In other words, I am able to authenticate wit= h >>> Postgres when a human has logged in to either Windows or Linux and >>> generated a ticket, but is it possible for say a Django site or Java >>> application running on some server somewhere to authenticate with >>> Postgres using gssapi? I realize that psycopg2 has a connection >>> parameter for =E2=80=9Ckrbsrvname=E2=80=9D, but how does it generate a = ticket? Is this >>> the only alternative to secure authentication since Postgres does not >>> support secure ldap (ldaps)? ------=_Part_199579_1383892214.1513804619532 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
This shows you how to setup GSSAPI authentication server side,=
 which I have already done and have working. My question is from client sid=
e, without a human logged in to generate the ticket.
>>Hello,
>>have a look at

>>https://www.po=
stgresql.org/docs/current/static/auth-methods.html

>>There are details about LD=
AP and GSSAPI.

>>On 20.12.2017 20:42, Mike =
F wrote:
>>> Is it possible to aut=
henticate with Postgres from a standalone
>>> application using gss=
api? In other words, I am able to authenticate with
>>> Postgres when a human=
 has logged in to either Windows or Linux and
>>> generated a ticket, b=
ut is it possible for say a Django site or Java
>>> application running o=
n some server somewhere to authenticate with
>>> Postgres using gssapi=
? I realize that psycopg2 has a connection
>>> parameter for =E2=80=
=9Ckrbsrvname=E2=80=9D, but how does it generate a ticket? Is this
>>> the only alternative =
to secure authentication since Postgres does not
>>> support secure ldap (=
ldaps)?

------=_Part_199579_1383892214.1513804619532--