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

From Niels Jespersen
Subject SSPI auth and mixed case usernames
Date
Msg-id 3967181ED595B445B1E39718204FD4BD0122BAD97D@SRVEXC5.dst.local
Whole thread Raw
Responses Re: SSPI auth and mixed case usernames  (Magnus Hagander <magnus@hagander.net>)
List pgsql-general
Hello

Postgresql 11.2 on Windows.

I have a user mapping i pg_hba.conf

sspi map=domain

In pg_ident.conf, I have the following:

domain        /^(([A-Z|a-z]{3}[A|a]?)|([Xx]\d{2}))@DOMAIN$    \1

This maps windows logonname til a postgres username. Hower, for reasons I cannot explain, sometimes the username comes
inall-lowercase, at other times it comes all-caps. This is dependant on the Windows host the client is connected to.  

I do not want to create both XXX and xxx as users on Postgres. I would prefer to translate alle usernames to lowercase
inthe map.  

Is that possible, and if so, how?

Regards Niels Jespersen






pgsql-general by date:

Previous
From: Luca Ferrari
Date:
Subject: Re: "storing" a calculated value in plsql function ?
Next
From: Magnus Hagander
Date:
Subject: Re: SSPI auth and mixed case usernames