Repository navigation
Description
Problem
PostgreSQL and MariaDB servers in an Active Directory or MIT Kerberos realm often accept only a Kerberos ticket, and TablePro cannot present one to either.
- libpq is built
--without-gssapi(apple/scripts/build-libpq.sh:90), sogsslines inpg_hba.confandgssencmodecannot be used. - MariaDB Connector/C is built with
-DCLIENT_PLUGIN_AUTH_GSSAPI_CLIENT=OFF(apple/scripts/build-mariadb.sh:72), so an accountIDENTIFIED VIA gssapicannot log in.
SQL Server already does this on macOS: Windows Authentication (Kerberos) uses the ticket in the credential cache, or requests one from a principal and password (databases/mssql.mdx, Windows Authentication), with FreeTDS built against the system GSS framework (apple/scripts/build-freetds.sh:163). The PostgreSQL and MariaDB forms have no such option.
Proposed solution
- An Authentication choice on the PostgreSQL connection form: Password, or Kerberos (GSSAPI). Kerberos uses the ticket in the credential cache, or requests one from a principal and password the way the SQL Server form does.
- A GSS Encryption setting (
gssencmode: Disable, Prefer, Require) beside the SSL mode. - The same Kerberos choice on MariaDB connections, through the connector's
auth_gssapi_clientplugin. - Build libpq and MariaDB Connector/C against the system GSS framework, as FreeTDS is today, and check in the build script that the GSS code was really compiled in.
- Clear errors for the usual failures: no ticket in the cache, an expired ticket, and a server principal that is not registered.
Done means a PostgreSQL connection with Kerberos selected and no password connects with the ticket kinit put in the cache, and so does a MariaDB account created IDENTIFIED VIA gssapi.
Alternatives considered
A password login created for TablePro alongside the Kerberos one, where the DBA allows it.
Platform
macOS
Related database type
PostgreSQL
Activity