Re: SSPI auth and mixed case usernames - Mailing list pgsql-general

From Stephen Frost
Subject Re: SSPI auth and mixed case usernames
Date
Msg-id 20190830142137.GE16436@tamriel.snowman.net
Whole thread Raw
In response to SSPI auth and mixed case usernames  (Niels Jespersen <NJN@dst.dk>)
List pgsql-general
Greetings,

* Niels Jespersen (NJN@dst.dk) wrote:
>    Hello Magnus
>    Thank you for your prompt reply. 
>    I’m not sure I understand your last statement. I want to achieve 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

Attachment

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: SQL equivalint of #incude directive ?
Next
From: Justin Pryzby
Date:
Subject: Re: postgres=# VACUUM FULL pg_statistic => ERROR: missing chunknumber 0 for toast value .. in pg_toast_2619