All pages
Powered by GitBook
1 of 1

Loading...

Authentication with gssapi

Overview

The gssapi authentication plugin validates user credentials against a GSSAPI-based authentication service, like Kerberos or NTLM.

Install Package

The gssapi authentication plugin requires an additional package to be installed on Linux. On CentOS, RHEL, and Rocky Linux:

On Debian and Ubuntu:

On SLES:

Configure

The gssapi requires some system variables to be configured, including:

  • gssapi_keytab_path

  • gssapi_principal_name

For example:

Install Plugin

The gssapi must be installed before it can be used.

To install with the INSTALL SONAME statement:

To install in a configuration file with the plugin_load_add option:

Create User

To create a user account that uses the gssapi , specify the plugin in the CREATE USER statement:

An optional realm can be specified:

This page is: Copyright © 2025 MariaDB. All rights reserved.

authentication plugin
authentication plugin
authentication plugin
$ sudo yum install MariaDB-gssapi-server
$ sudo apt install mariadb-plugin-gssapi-server
$ sudo zypper install MariaDB-gssapi-server
[mariadb]
...
gssapi_keytab_path=KEYTAB_PATH
gssapi_principal_name=PRINCIPAL_NAME
INSTALL SONAME 'gssapi';
[mariadb]
...
plugin_load_add = auth_gssapi
CREATE USER 'USER'@'192.0.2.%'
   IDENTIFIED VIA gssapi;
CREATE USER 'USER'@'192.0.2.%'
   IDENTIFIED VIA gssapi USING 'USER@DOMAIN';