Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3hmd-0001I6-8B for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2019 14:21:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3hmb-0001YQ-8C for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2019 14:21:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3hma-0001YI-Rk for pgsql-general@lists.postgresql.org; Fri, 30 Aug 2019 14:21:44 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1i3hmU-0000oN-82 for pgsql-general@lists.postgresql.org; Fri, 30 Aug 2019 14:21:43 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 7A2E45F79F; Fri, 30 Aug 2019 10:21:37 -0400 (EDT) Date: Fri, 30 Aug 2019 10:21:37 -0400 From: Stephen Frost To: Niels Jespersen Cc: Magnus Hagander , "pgsql-general@lists.postgresql.org" Subject: Re: SSPI auth and mixed case usernames Message-ID: <20190830142137.GE16436@tamriel.snowman.net> References: <3967181ED595B445B1E39718204FD4BD0122BAD97D@SRVEXC5.dst.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r0m5nWoYMcWhDoY6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --r0m5nWoYMcWhDoY6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Niels Jespersen (NJN@dst.dk) wrote: > Hello Magnus > Thank you for your prompt reply.=C2=A0 > I=E2=80=99m not sure I understand your last statement. I want to achie= ve that > regardless of the case of the entered username is logged into the same > Postgres user (whose name is created in all lowercase). > In other words, Windows usernames one day entered as XYz, the next day > entered as xYz, should logon to Postgres user xyz. You just have to make sure that the users tell whatever program they're using to connect to PG (like psql, pgAdmin, whatever) that their PG username is 'xyz'. If they try to log in as 'XYZ' then that's gonna be a different PG user. If you have some other application that's being used to connect to PG then you could do the lowercase in the app... Thanks, Stephen --r0m5nWoYMcWhDoY6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdaTDxAAoJEO1sijiDR2RVr2AQAJhIlddkkRVLHSsp96IlfyIn /QY5vMWGFkPp/BHm3ZgYdDozrK7VbmXYN7e+0UBss2anDnRFpnTa3AXhvmtln9VR n92bngFXvoTwNqkVFjlXcW87AxOsRrTLqFZBDphxs6V/JBs0zZqevZozRiMB7spf I1H0nXYX5B7BRYNvQ7uxBkZyhRYSKRde4tTcFE4yvX1tEWrLX9oxFft5ldF3zWxt ZjvTfRJoYuruO+j3HUrJB4kz1Sz1tXTBK1csdJGjcAvbJum2exD6uLdzzcRsuZpj mIo05Rr0pjk6TQIrpW/U/wVAPBhJzKK4C1v/+xtApQONWy2bnplpS9w2pdSUmlq5 ydNpgeUmdQJItazFpst3S+pBOXyaRjecl7lR5bnrqEt/4m0ntFCQgeaQcNQH34P+ yQxoSKyCtwdtZ4aBjkmmjay4Awu+CUuYfDDbF5v6dZb4S5sFeeMavsnl3cjd2m1I o8mCpyN1je6xsFYmLgmhH3uz5rB1U2NiUuEKjlvj5rg3oWlTbTtE6zzPNZZhFR1j +1B/OADMk1XYy+P1bx21KHw+sKKtkaNECSUkjhqIPp6vU+ahyTQ1N69QG+aqhDtl kAkrCZFmisEjJxKWfkoxrS0kFHCXRSTKCsTj1M4Tqj+ZB8k79z8MIPE7VaHZ+Q2w 4MTfhTsZCRFa10jISrgV =7jzJ -----END PGP SIGNATURE----- --r0m5nWoYMcWhDoY6--