I am new to Kerberos. We are creating a web application that uses Kerberos authentication with Microsoft AD as the KDC. The web app runs on Linux CentOS and acts on behalf of the user (constrained delegation) to:
- make http requests to a REST API
- connect to a PostgreSQL database.
Now, if I run a kinit
with my uppercased username I can successully make http requests. However, I need to run kinit with my lowercased username to connect to the
database. How can I make both work at the same time? Caveat: I cannot update AD so usernames are always lowercased. Also, after authentication, authorization still requires the username in its original casing. Schematically, this illustrates the problem:
CLIENT_X > webapp > Postgres (client_x)
CLIENT_X > webapp > API server (CLIENT_X)