- My environment:
- MIT Kerberos server on Red Hat 8.8
- PostgreSQL server v15.3 on Red Hat 8.8
- PostgreSQL client v15.3 on Ubuntu 22.04 Desktop
I have configured PostgreSQL server to use Kerberos. On my Ubuntu Desktop where PostgreSQL client is installed, I can successfully establish Kerberos connection with PostgreSQL server using psql client.
On Ubuntu Desktop I have installed pgadmin4 using apache2 server following instructions: https://computingforgeeks.com/how-to-install-pgadmin-4-on-ubuntu/ I can successfully login into pgadmin4 using internal pgadmin4 connection and I can establish PostgreSQL connection with PostgreSQL server that does NOT use Kerberos. I think pgadmin4 is correctly setup.
Now I would like to establish Kerberos authentication with pgadmin4 to PostgreSQL Kerberos configured server. I have followed official documentation: https://www.pgadmin.org/docs/pgadmin4/latest/kerberos.html and also watched youtube video: https://www.youtube.com/watch?v=EDg6I21kCak - I can follow and configure everything like in doc and video, but finally when I open Firefox 113 browser, type in URL: http://desktop.example.com/pgadmin4/browser/ and pgadmin4 web page loads, but in top right corner there is error message displayed: "Kerberos authentication failed. Cound't find kerberos ticket."
I have checked the ticket with "klist" command and ticket is there and still valid (remember I can successfully establish Kerberos connection with psql tool). Also desktop's keytab file is present in Ubuntu.
On Ubuntu I have checked /var/log/pgadmin/ where is an empty file. Also checked the /var/log/apache2/ folder where the only message (during connection establishing) is in access.log:
192.168.100.31 - - [02/Jun/2023:13:41:49 +0200] "GET /pgadmin4/browser/ HTTP/1.1" 302 930 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"
192.168.100.31 - - [02/Jun/2023:13:42:04 +0200] "GET /pgadmin4/login?next=%2Fpgadmin4%2Fbrowser%2F HTTP/1.1" 401 5435 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0"
- I can't see any errors in log files. I have searched the web, but can't find anything useful.
Any idea what I can look into?