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 1i3iTw-0003RS-TB for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2019 15:06:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3iTv-00011q-LZ for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2019 15:06:31 +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 1i3iTv-0000tc-2j for pgsql-general@lists.postgresql.org; Fri, 30 Aug 2019 15:06:31 +0000 Received: from srvimsva2.dst.dk ([91.208.143.64]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i3iTr-0001CO-UY for pgsql-general@lists.postgresql.org; Fri, 30 Aug 2019 15:06:30 +0000 Received: from srvimsva2.dst.dk (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0E3EB104072; Fri, 30 Aug 2019 17:06:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dst.dk; s=dmz20180119; t=1567177584; bh=lDZ+fcGTbXwHN8y3x/ftElN+wtKm8PgGN1bFm03qKMM=; h=From:To:Date; b=CiZ0bVNiHSAkQs31QYYSURqeNz0ypG8f2jG86FP2Wq6APF/PCGY/mmwwQlPwXLfi0 6QT6IFWE+94H29YAFPy+J5C09q4yvRM/rKaPYTi0AUzKpYOM0XVXF3mRW9UKX1PCny SCXQySw1tRogAH3xNBFWtiu9/e/oR3V6+cxalDiQ= Received: from srvimsva2.dst.dk (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 02A98104071; Fri, 30 Aug 2019 17:06:23 +0200 (CEST) Received: from Sepo.dst.dk (unknown [192.168.64.11]) by srvimsva2.dst.dk (Postfix) with ESMTP; Fri, 30 Aug 2019 17:06:23 +0200 (CEST) Received: from SRVEXC6.dst.local ([172.30.32.195]) by Sepo.dst.dk (JAMES SMTP Server 2.3.2-1) with SMTP ID 1002; Fri, 30 Aug 2019 17:06:23 +0200 (CEST) Received: from SRVEXC5.dst.local ([fe80::60d0:9a80:c5c6:339c]) by SRVEXC6.dst.local ([fe80::952:2aa9:6795:771%13]) with mapi id 14.03.0415.000; Fri, 30 Aug 2019 17:06:23 +0200 From: Niels Jespersen To: Stephen Frost CC: Magnus Hagander , "pgsql-general@lists.postgresql.org" Subject: Re: SSPI auth and mixed case usernames Thread-Topic: SSPI auth and mixed case usernames Thread-Index: AdVfJTnb7rpeCvDXTjqWJgPws8lTDf//4OWAgAA6U+P///VEgIAALgg3 Date: Fri, 30 Aug 2019 15:06:22 +0000 Message-ID: References: <3967181ED595B445B1E39718204FD4BD0122BAD97D@SRVEXC5.dst.local> ,<20190830142137.GE16436@tamriel.snowman.net> In-Reply-To: <20190830142137.GE16436@tamriel.snowman.net> Accept-Language: da-DK, en-US Content-Language: da-DK X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-GCONF: 00 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk
Ok, yes. It=92s s server for analytics running R. So users speecify thei= r oen connection string. My initial thought was to leave out username = in the connection string, but I think now to specify username in lowercase. 

Thank you, and Magnus also. 

Niels 



Fra: Stephen Frost <sfrost@snowman.net>
Dato: 30. august 2019 kl. 16.21.39 CEST
Til: Niels Jespersen <NJN@dst.dk>
Cc: Magnus Hagander <magnus@hagander.net>, pgsql-general@lists= .postgresql.org <pgsql-general@lists.postgresql.org>
Emne: Re: SSPI auth and mixed case usernames

Greetings,

* Niels Jespersen (NJN@dst.dk) wrote:
>    Hello Magnus
>    Thank you for your prompt reply. 
>    I=92m not sure I understand your last statement. I w= ant to achieve that
>    regardless of the case of the entered username is lo= gged into the same
>    Postgres user (whose name is created in all lowercas= e).
>    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 b= e
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