summaryrefslogtreecommitdiff
path: root/mysql-test/main/failed_auth_unixsocket.result
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-23933 main.failed_auth_unixsocket fails on armSergei Golubchik2021-06-091-2/+5
| | | | | | | | | | | | | | the idea of main.failed_auth_unixsocket was to have existing user account (root) authenticate with unix_socket, then login with non-existent user name, Non-existent user name forces the server to perform the authentication in the name of some random existing user. But it must still fail at the end, as the user name is wrong. In 10.4 a second predefined user was added, mariadb.sys, so root is not the only user in mysql.global_priv and unix_socket auth must be forced for all existing user accounts, because we cannot know what user account the server will randomly pick for non-existing user auth.
* MDEV-19650: Privilege bug on MariaDB 10.4Oleksandr Byelkin2020-05-071-2/+2
| | | | | | | | | | | | | | | Also fixes: MDEV-21487: Implement option for mysql_upgrade that allows root@localhost to be replaced MDEV-21486: Implement option for mysql_install_db that allows root@localhost to be replaced Add user mariadb.sys to be definer of user view (and has right on underlying table global_priv for required operation over global_priv (SELECT,UPDATE,DELETE)) Also changed definer of gis functions in case of creation, but they work with any definer so upgrade script do not try to push this change.
* try harder to link unix_socket plugin staticallySergei Golubchik2019-02-211-6/+0
| | | | fix unix_socket tests to work if unix_socket is a built-in
* MDEV-12484 Enable unix socket authentication by defaultSergei Golubchik2019-02-121-1/+1
| | | | | | | | | | | | | | Change the default authentication for root@localhost to IDENTIFIED VIA mysql_native_password USING 'invalid' OR unix_socket which provides secure passwordless login, while still allowing SET PASSWORD to work as expected. Also create a second all-privilege account for the user that owns datadir (and thus has full access to the data anyway). Compile unix_socket plugin statically into the server.
* MDEV-17950 SHOW GRANTS FOR does not work for a user identified with ↵Sergei Golubchik2019-02-041-7/+2
| | | | | | | | | | | | | | non-existing plugin Revert the side effect of 7c40996cc866. Do not convert password hash to its binary representation when a user entry is loaded. Do it lazily on the first authenticatation attempt. As a collateral - force all authentication plugins to follow the protocol and read_packet at least once before accessing info->username (username is not available before first client handshake packet is read). Fix PAM and GSSAPI plugins to behave.
* MDEV-17658 change the structure of mysql.user tableSergei Golubchik2018-12-121-2/+2
| | | | | | Implement User_table_json. Fix scripts to use mysql.global_priv. Fix tests.
* MDEV-12321 authentication plugin: SET PASSWORD supportSergei Golubchik2018-10-311-3/+8
| | | | | | | | | | | | | | | | | | | | | | | Support SET PASSWORD for authentication plugins. Authentication plugin API is extended with two optional methods: * hash_password() is used to compute a password hash (or digest) from the plain-text password. This digest will be stored in mysql.user table * preprocess_hash() is used to convert this digest into some memory representation that can be later used to authenticate a user. Build-in plugins convert the hash from hexadecimal or base64 to binary, to avoid doing it on every authentication attempt. Note a change in behavior: when loading privileges (on startup or on FLUSH PRIVILEGES) an account with an unknown plugin was loaded with a warning (e.g. "Plugin 'foo' is not loaded"). But such an account could not be used for authentication until the plugin is installed. Now an account like that will not be loaded at all (with a warning, still). Indeed, without plugin's preprocess_hash() method the server cannot know how to load an account. Thus, if a new authentication plugin is installed run-time, one might need FLUSH PRIVILEGES to activate all existing accounts that were using this new plugin.
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+13