Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfhpZ-001iRg-3n for pgsql-general@arkaria.postgresql.org; Thu, 29 Feb 2024 14:56:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rfhpX-004kxt-I7 for pgsql-general@arkaria.postgresql.org; Thu, 29 Feb 2024 14:56:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfhpX-004kxl-7C for pgsql-general@lists.postgresql.org; Thu, 29 Feb 2024 14:56:15 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rfhpV-0026RJ-6O for pgsql-general@lists.postgresql.org; Thu, 29 Feb 2024 14:56:15 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e571666804so674987b3a.2 for ; Thu, 29 Feb 2024 06:56:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709218570; x=1709823370; darn=lists.postgresql.org; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=QOO0ZbTU1z7G4NLuAcSZQ6XhCOlgB7FzmvYYYgwMMiU=; b=BYQ8NzN/lweRPgoYtBwoef8ug18riCPNwfjMUqHVqi5Z3lnlFt81QZf0b0vdxqT15s liqbRhJC2y5vJmnG+IZLQRkJ1ZVSAkpJAUGhl2eJ5OYhFYAs0MfK940C9tMCterm3WfF AmgjuQOfgTEyaozIWpUlRGZuyNwR205/3KTtYgaDItE23q6RU7KTbW1b//+myj5XJVO5 8XzfilIFSkcNw4Nl4d54r1TWQgXF38wFviZCL5fPzV0Y1PjhlldfxEomSo1i44jXGA4a X027tCptk7Bcq9iZOxYduL0wvlUgBixoaA4xMENfWJ3OyYeO3lGN2pbqTBtwnHe3Lxve YZGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709218570; x=1709823370; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=QOO0ZbTU1z7G4NLuAcSZQ6XhCOlgB7FzmvYYYgwMMiU=; b=TUlEVOv2+PPPbMwBTygvXzOECVuctXQgkt7K/wiUgcUWuYny+FWa9diG1TtlgcYlhK 2JUZShi4kPtrDJHpCIygWn42Ryj2Jou9AHN2TVK+hMdksSLfZSQ1OqAoGNUNwxCxi0rp pOhHNmbfLDEMd39H9SQjLW0J3N3DLMMFa/HN47bU1Y2Gf8/xFWrLxLdBQYHzsv9KtiHT CAssUYorpVGJ80KG9kZyvOOIqgIY9n483Mnkky4ZtwL+CDu4kAUk+DzgW4MmHu/DYC77 wn4+uFKiyNx2yvXRiv3gywgiWOhZGsDMoqgJigOuQwnlswP6nfef8IGGUZmYpklL7Gi1 QdXg== X-Gm-Message-State: AOJu0YzCRnreDfymUKm/rcrfSePIO6QhhMpLpPI85fxz2i8pCGSaHMCo aZFHAV/kA3+Q64D16HqdeBciETP0REWasXqPlNRdMRUeThq8aj7TvQsZaOIW X-Google-Smtp-Source: AGHT+IFGjsl/heUnr/LahYAZsyy5X2AbIpyhvJSmj058dSWWT7Ubbi5n8BEuTer2cpc22eD99EMkLg== X-Received: by 2002:a05:6a20:c88b:b0:19e:9a97:cb12 with SMTP id hb11-20020a056a20c88b00b0019e9a97cb12mr2985479pzb.54.1709218570178; Thu, 29 Feb 2024 06:56:10 -0800 (PST) Received: from ?IPV6:2601:681:5a00:f790:1d4f:b1ab:bcf:74ed? ([2601:681:5a00:f790:1d4f:b1ab:bcf:74ed]) by smtp.gmail.com with ESMTPSA id hq4-20020a056a00680400b006e4e93f4f17sm1368534pfb.117.2024.02.29.06.56.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Feb 2024 06:56:09 -0800 (PST) Content-Type: multipart/alternative; boundary="------------FSmc9cisj3NUUOFNQfQ0Buwj" Message-ID: <32d6a0ce-2c5a-423b-be54-be1d12b4080a@gmail.com> Date: Thu, 29 Feb 2024 07:56:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Unable to get PostgreSQL 15 with Kerberos (GSS) working Content-Language: en-CA To: pgsql-general@lists.postgresql.org References: From: Rob Sargent In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------FSmc9cisj3NUUOFNQfQ0Buwj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/29/24 01:18, Matthew Dennison wrote: > Here's the results: > > psql: error: connection to server at "hostname.mydomain.net" (::1), port 5432 failed: GSSAPI continuation error: Unspecified GSS failure. Minor code may provide more information: No Kerberos credentials available (default cache: KCM:) > > If I run kinit and get Kerberos ticket ahead of running the command I then receive: > > psql: error: connection to server at " hostname.mydomain.net " (::1), port 5432 failed: could not initiate GSSAPI security context: Unspecified GSS failure. Minor code may provide more information: Server not found in Kerberos database > connection to server at " hostname.mydomain.net " (::1), port 5432 failed: GSSAPI continuation error: Unspecified GSS failure. Minor code may provide more information: Server not found in Kerberos database > > Should a FQDN resolve to ::1? --------------FSmc9cisj3NUUOFNQfQ0Buwj Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

On 2/29/24 01:18, Matthew Dennison wrote:
Here's the results:

psql: error: connection to server at "hostname.mydomain.net" (::1), port 5432 failed: GSSAPI continuation error: Unspecified GSS failure.  Minor code may provide more information: No Kerberos credentials available (default cache: KCM:)

If I run kinit and get Kerberos ticket ahead of running the command I then receive:

psql: error: connection to server at " hostname.mydomain.net " (::1), port 5432 failed: could not initiate GSSAPI security context: Unspecified GSS failure.  Minor code may provide more information: Server not found in Kerberos database
connection to server at " hostname.mydomain.net " (::1), port 5432 failed: GSSAPI continuation error: Unspecified GSS failure.  Minor code may provide more information: Server not found in Kerberos database


Should a FQDN resolve to ::1?
--------------FSmc9cisj3NUUOFNQfQ0Buwj--