Skip to content

Kerberos sign-in for PostgreSQL and MariaDB #3629

Closed

Description

@datlechin

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), so gss lines in pg_hba.conf and gssencmode cannot be used.
  • MariaDB Connector/C is built with -DCLIENT_PLUGIN_AUTH_GSSAPI_CLIENT=OFF (apple/scripts/build-mariadb.sh:72), so an account IDENTIFIED VIA gssapi cannot 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_client plugin.
  • 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

  1. added
    enhancement
    platform-macos
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions