I have create a test postgresql 15 geodatabase 11.4 on windows 11 (my own laptop). I need to be able to connect as OS authenticated sde connection. I created a user using pgAdmin. The user is mixed case (LastnameF) which matches what windows is doing in the OS authentication. I use a membership in a role and I am able to view and edit data in a schema I already loaded through OS authentication connection. This is all local so I don't have ldap set up or anything like that, I assume the os authentication is passing the user name from windows to postgresql as-is and the database accepts it.
The problem is when I try to create data in the LastnameF schema. It seems like it sends everything to lower case. I tried creating the user schema as LastnameF and as lastnamef but it both cases I get "Database user name and current user schema do not match" I tried ArcGIS pro 3.4 and ArcGIS 10.8.1 for good measure.
If I create the schema as lower case and the user as lower case, I can connect using database authentication and create feature classes. However, I cannot connect as OS authentication in that case which is a requirements for our application.