Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ky96M-0008C8-7W for pgsql-general@arkaria.postgresql.org; Sat, 09 Jan 2021 07:55:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ky96J-0005Vo-Mw for pgsql-general@arkaria.postgresql.org; Sat, 09 Jan 2021 07:55:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ky96J-0005Tx-CN for pgsql-general@lists.postgresql.org; Sat, 09 Jan 2021 07:55:55 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ky96G-0006pv-S5 for pgsql-general@postgresql.org; Sat, 09 Jan 2021 07:55:54 +0000 Received: by mail-wr1-x432.google.com with SMTP id r3so11137276wrt.2 for ; Fri, 08 Jan 2021 23:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KnNSa4vJA9K5efOLmEkqSj5o6khqyVzu60l5Q2QrVcE=; b=HoVdi7Jba6b7AwOz6W1OcsxuiqTIeRlEi3CCG5012Ng/Qt7ho7y92d7hS8FUQ7aY0n wH3Wt+Xgs6jTEeZmsy6ZV6VvbFnf01OvqihwrI/RYrzJQvw4W6IbXxngcef9IEv2nKxN l7V5ZfzLw7X0i6CLwyGaj64ag7Eu1SgPMVIjtEY2Kj02+EGNDV7Dis4L4SsV2SLR0vkZ J5zOT1PwM74j/1ssN9KhfTX5R4eVUqlPHCGSXgQlZXf3igqCQCkYcj/HQCe8wYZQmC+9 55IPrs5HJ6diWfOfIkRZC5ZJFubfVu+mjkjT8MXpFm/2tHRbYlLkWnCoRb/vYNYOppxD P37Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KnNSa4vJA9K5efOLmEkqSj5o6khqyVzu60l5Q2QrVcE=; b=KC9QLtK2nQXkt5YkjrNqiE3fWt1MnWVhDAvMZM2LZ0cOslo+kPWENItrSjHbLumTae FHMYXhUN/P01JyrnsfL5XI1i3AjLJJcby0vvsJKBu3JO3rSTFTUc5PlVX/CeGU/tUq/L izWQXwYrIW08YIgNP/lOEfw71fnYY7WJqR+CSb1q8hmWjstbWVgRg+7vf2yUU7Islh9Z kjuAmwRXZw8vTsAUR8t/4Iso414MmKRZjvGpVEDQKVUKvHS20+ht9XLSTzct9Tv9hfiM xwPqPRftg5kMWhW1HxFiokkmd108Y2r5sbd+wVb4/fytlGTV1MG+ItT/5s6XBxL6/fXw 5z2g== X-Gm-Message-State: AOAM531j3NYOskPrJPSE6q/3Diq5c5meHiOSC9yx+O1JbiaciN6XO6oL ms82SsbbHae81nzfotLbuEA= X-Google-Smtp-Source: ABdhPJyatOwfvQUhHr02oy+naob5anPoJeMnNL1hbma/bYKiS2cA+FRkxRP4gDZVYDyDaHtWN8I7Zw== X-Received: by 2002:a5d:5442:: with SMTP id w2mr7038392wrv.418.1610178951029; Fri, 08 Jan 2021 23:55:51 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id r13sm16588775wrs.6.2021.01.08.23.55.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jan 2021 23:55:50 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Using more than one LDAP? From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <20210108215926.GY27507@tamriel.snowman.net> Date: Sat, 9 Jan 2021 08:55:50 +0100 Cc: Magnus Hagander , "pgsql-general@postgresql.org >> PG-General Mailing List" Content-Transfer-Encoding: quoted-printable Message-Id: References: <08D7C808-63E6-4482-A753-9F3E0DF8ABB5@gmail.com> <15055352-B99F-4F38-AFCF-7B78341820F5@gmail.com> <20210108215926.GY27507@tamriel.snowman.net> To: Stephen Frost X-Mailer: Apple Mail (2.3654.40.0.2.32) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Stephen, > On 08. Jan, 2021, at 22:59, Stephen Frost wrote: >=20 > Done correctly, the developers will hopefully be going from "this = stupid > thing prompts me to provide a username/password in order to log in" to > "no more prompt for logging in, it just *works*". Further, as Magnus > explained, you could actually have the mapping to allow user X to log = in > by providing GSSAPI credentials Y, if they are actually still going to > be including some username in their connection request to PG (even > though they shouldn't need to, since it'll be the same between their > local Windows/AD login and the GSSAPI user that PG will see). You > should be able to make both work concurrently thanks to pg_ident.conf. I agree. But the company policy is to have users being asked each time = they want to login somewhere, no matter where. We need to use an RSA = tamagotchi at least twice to even get somewhere close to being able to = launch a tool like DbVisualizer or SQL Developer. If we want a shell on = a server, we need to use the tamagotchi even one more time. And then, for such tools, or in fact anything, "no more prompt" = unfortunately is just no option. Some call that security, I call that = paranoia. This is why I don't care whether GSSAPI is more secure than = LDAPS. The whole environment is stuffed inside some network zone which = is stuffed into another network zone, then divided into again some other = network zones inside, etc. LDAP and AD are in separate zones than the = databases, developer's and admin's machines are again in some other = network zone. Even some databases have their own network zones. You get = the picture... The best thing is: they still call this single sign on = because you get to use the same username everywhere. rotfl =46rom the network perspective, Magnus is right. We have a hacky = environment. But architecture is not something I have an influence on. Cheers, Paul=