mariadb/plugin/auth_gssapi/mysql-test/auth_gssapi
Sergei Golubchik 5b15cc613e MDEV-11340 Allow multiple alternative authentication methods for the same user
introduce the syntax

... IDENTIFIED { WITH | VIA }
      plugin [ { USING | AS } auth ]
 [ OR plugin [ { USING | AS } auth ]
 [ OR ... ]]

Server will try auth plugins in the specified order until the first
success. No protocol changes, server uses the existing "switch plugin"
packet.

The auth chain is stored in json as

  "auth_or":[{"plugin":"xxx","authentication_string":"yyy"},
             {},
             {"plugin":"foo","authentication_string":"bar"},
            ...],
  "plugin":"aaa", "authentication_string":"bbb"

Note:
* "auth_or" implies that there might be "auth_and" someday;
* one entry in the array is an empty object, meaning to take plugin/auth
  from the main json object. This preserves compatibility with
  the existing mysql.global_priv table and with the mysql.user view.
  This entry is preferrably a mysql_native_password plugin for a
  non-empty mysql.user.password column.

SET PASSWORD is supported and changes the password for the *first*
plugin in the chain that has a notion of a "password"
2019-02-04 16:06:57 +01:00
..
basic.result make auth_gssapi_basic work, also in domain environment. 2018-10-15 22:57:15 +01:00
basic.test Fix regular expression in replace_regex in auth_gssapi test. 2018-10-15 23:07:30 +01:00
multiauth.result MDEV-11340 Allow multiple alternative authentication methods for the same user 2019-02-04 16:06:57 +01:00
multiauth.test MDEV-11340 Allow multiple alternative authentication methods for the same user 2019-02-04 16:06:57 +01:00
suite.opt MDEV-4961 SSPI/GSSAPI/Kerberos authentication plugin 2016-01-14 13:31:08 +01:00
suite.pm mtr complains about klist is not found, if Kerberos is not installed on machines 2016-03-17 17:58:40 +01:00