summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Brand new change!Vicențiu Ciorbaru2016-10-081-1/+1
|
* Use sql_mode_t for sql_mode.Monty2016-10-051-3/+3
| | | | This fixed several cases where we where using just ulong for sql_mode
* Merge branch '10.1' into 10.2Sergei Golubchik2016-09-091-5/+5
|\
| * MDEV-10545: Server crashed in my_copy_fix_mb on querying I_S and P_S tablesNirbhay Choubey2016-09-021-4/+4
| | | | | | | | | | | | Once THDs have been added to the global "threads" list, they must modify query_string only after acquiring per- thread LOCK_thd_data mutex.
| * cleanupSergei Golubchik2016-07-131-1/+1
| |
* | fix: CURRENT_ROLE() inside SECURITY DEFINER viewsSergei Golubchik2016-08-271-4/+3
| |
* | Revert "MDEV-9293 Connector/C integration"Vladislav Vaintroub2016-08-191-4/+0
| | | | | | | | This reverts commit 7b89b9f5108c80f4f270da922d7e6c182a663719.
* | MDEV-9293 Connector/C integrationVladislav Vaintroub2016-08-191-0/+4
| |
* | Merge branch '10.1' into 10.2Sergei Golubchik2016-06-301-85/+94
|\ \ | |/
| * MDEV-10054 Secure login fails when CIPHER is requiredSergei Golubchik2016-06-281-0/+3
| | | | | | | | | | SSL: do not require client certificate to exist, if GRANT didn't require that
| * Merge branch '10.0' into 10.1Sergei Golubchik2016-06-281-7/+5
| |\
| | * [MDEV-9614] Roles and Users longer than 6 charactersIgor Pashev2016-06-221-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug is apparent when the username is longer than the rolename. It is caused by a simple typo that caused a memcmp call to compare a different number of bytes than necessary. The fix was proposed by Igor Pashev. I have reviewed it and it is the correct approach. Test case introduced by me, using the details provided in the MDEV. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
| * | MDEV-9851: CREATE USER w/o IDENTIFIED BY clause causes crash when using ↵Nirbhay Choubey2016-05-051-1/+3
| | | | | | | | | | | | | | | | | | | | | cracklib plugin Do not allow NULL password to pass directly to password validation plugin.
| * | MDEV-9940 CREATE ROLE blocked by password validation pluginSergei Golubchik2016-05-051-1/+1
| | |
| * | Merge branch '10.0' into 10.1Sergei Golubchik2016-05-041-40/+36
| |\ \ | | |/
| | * Merge branch '5.5' into 10.0Sergei Golubchik2016-04-261-21/+26
| | |\
| | | * Merge branch 'mysql/5.5' into 5.5Sergei Golubchik2016-04-201-9/+9
| | | |\
| | | | * (no commit message)Arun Kuruvila2016-02-231-8/+8
| | | | |
| | | * | MDEV-9835 Valid password is not working after server restartSergei Golubchik2016-04-191-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On SET PASSWORD if the plugin is mysql_native_password or mysql_old_password, do reset plugin and auth_str fields.
| | * | | MDEV-9580 SHOW GRANTS FOR <current_user> failsSergei Golubchik2016-04-241-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use get_current_user() to distinguish user name without a hostname and a role name. move privilege checks inside mysql_show_grants() to remove duplicate get_current_user() calls
| | * | | SEGFAULT in get_column_grant()Igor Pashev2016-04-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a typo, the wrong grant_table was used when fetching privileges for roles. Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
| * | | | MDEV-9898 SET ROLE NONE can crash mysqld.Alexey Botchkov2016-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check_user_can_set_role() used find_user_exact() to get the permissions for the SET ROLE NONE command. Which returned NULL too often, for instance when user authenticated as 'user'@'%'. Now we use find_user_wild() instead.
| * | | | Fixed assert if user table was mailformed.Monty2016-05-011-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added mysql_to_mariadb.sql script, to change mysql.user tables from MySQL 5.7 to MariaDB. After this script is run, one can get the other tables fixed by running mysql_upgrade
* | | | | More tests for "MDEV-7563 Support CHECK constraint".Alexander Barkov2016-06-301-2/+0
| | | | | | | | | | | | | | | | | | | | Testing non-ASCII string literals.
* | | | | Fixed compiler warnings and test failures found by buildbotMonty2016-06-221-9/+9
| | | | |
* | | | | Reuse THD for new user connectionsMonty2016-06-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - To ensure that mallocs are marked for the correct THD, even if it's allocated in another thread, I added the thread_id to the THD constructor - Added st_my_thread_var to thr_lock_info_init() to avoid a call to my_thread_var - Moved things from THD::THD() to THD::init() - Moved some things to THD::cleanup() - Added THD::free_connection() and THD::reset_for_reuse() - Added THD to CONNECT::create_thd() - Added THD::thread_dbug_id and st_my_thread_var->dbug_id. These are needed to ensure that we have a constant thread_id used for debugging with a THD, even if it changes thread_id (=connection_id) - Set variables.pseudo_thread_id in constructor. Removed not needed sets.
* | | | | Merge branch '10.1' into 10.2Sergei Golubchik2016-03-231-1/+1
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch '10.0' into 10.1Sergei Golubchik2016-03-211-1/+1
| |\ \ \ \ | | |/ / /
| | * | | Fix spelling: occurred, execute, which etcOtto Kekäläinen2016-03-041-1/+1
| | | | |
* | | | | Removed TABLE->sort to make it possible to have multiple active calls toMonty2016-03-221-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesort and init_read_record() for the same table. This will simplify code for WINDOW FUNCTIONS (MDEV-6115) - Filesort_info renamed to SORT_INFO and moved to filesort.h - filesort now returns SORT_INFO - init_read_record() now takes a SORT_INFO parameter. - unique declaration is moved to uniques.h - subselect caching of buffers is now more explicit than before - filesort_buffer is now reusable even if rec_length has changed. - filsort_free_buffers() and free_io_cache() calls are removed - Remove one malloc() when using get_addon_fields() Other things: - Added --debug-assert-on-not-freed-memory option to make it easier to debug some not-freed-memory issues.
* | | | | MDEV-9704: ALTER TABLE does not work from clientOleksandr Byelkin2016-03-141-2/+0
| | | | | | | | | | | | | | | | | | | | Do not try to send progress packets if client was not informed about them.
* | | | | [MDEV-7978] Post review fixes and cleanups.Vicențiu Ciorbaru2016-03-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Maintain coding style in sql_yacc.yy in regards to optional clauses. * Remove unused variable from sql_acl.cc. * Update test case
* | | | | [MDEV-7978] Added show create user implementation.Vicențiu Ciorbaru2016-03-081-92/+161
| | | | |
* | | | | [MDEV-7978] Updated syntax for SHOW CREATE USERVicențiu Ciorbaru2016-03-081-0/+4
| | | | |
* | | | | [MDEV-7978] Implement alter user and tested create userVicențiu Ciorbaru2016-03-081-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | Implemented the alter user syntax. Also tested that create user creates users accordingly.
* | | | | [MDEV-7978] Update grammar for new syntaxVicențiu Ciorbaru2016-03-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | Extend the syntax accepted by the grammar to account for the new create user and alter user syntax.
* | | | | Fix warnings in sql_acl.ccVicențiu Ciorbaru2016-03-081-4/+1
| | | | |
* | | | | Merge branch '10.1' into 10.2Monty2016-02-061-77/+96
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: VERSION cmake/plugin.cmake config.h.cmake configure.cmake plugin/server_audit/server_audit.c sql/sql_yacc.yy
| * | | | MDEV-5273 Prepared statement doesn't return metadata after prepare.Alexey Botchkov2016-01-281-4/+13
| | | | | | | | | | | | | | | | | | | | Fix for SHOW GRANTS statement.
| * | | | Revert "On Windows SSL works with sockets only, so we shouldn't tell the client"Georg Richter2016-01-271-5/+2
| | | | | | | | | | | | | | | | | | | | This reverts commit 2ee149be4e9319208dfcfb77712aa1ef805f6ba8.
| * | | | On Windows SSL works with sockets only, so we shouldn't tell the clientGeorg Richter2016-01-271-2/+5
| | | | | | | | | | | | | | | | | | | | that we support SSL when using named pipes or shared memory.
| * | | | MDEV-9273 ERROR 1819 on grant statment for existing userSergei Golubchik2016-01-251-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cannot do password validation in fix_lex_user(), we don't know there what "GRANT ... TO user" means - creating a new user with an empty password (need validation) or granting privileges to an existing user (no validation needed). Move validation down into replace_user_table(). And copy into check_change_password().
| * | | | cleanup: move all password validation logic into one functionSergei Golubchik2016-01-251-31/+33
| | | | |
| * | | | cleanup: LEX_USER::pwtext and LEX_USER::pwhashSergei Golubchik2016-01-251-39/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was: * LEX_USER::password was storing sometimes plaintext password and sometimes password hash * LEX_USER::auth was storing sometimes password hash and sometimes plugin authentication string Now: * LEX_USER::pwtext stores the password in plain-text * LEX_USER::pwhash stores the password hash * LEX_USER::auth stores the plugin authentication string
| * | | | cleanup: create LEX_USER::reset_auth()Sergei Golubchik2016-01-251-4/+2
| | | | | | | | | | | | | | | | | | | | as this is used quite often
* | | | | MDEV-9117: Client Server capability negotiation for MariaDB specific ↵Oleksandr Byelkin2016-02-021-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functionality New capability flags space. Removed old progress flag, added new one.
* | | | | Merge remote-tracking branch 'origin/10.1' into 10.2Alexander Barkov2015-12-291-0/+4
|\ \ \ \ \ | |/ / / /
| * | | | Merge branch '10.0' into 10.1Sergei Golubchik2015-12-211-0/+4
| |\ \ \ \ | | |/ / /
| | * | | MDEV-9088 Server crashes on shutdown after the second post of feedback reportSergei Golubchik2015-12-191-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On shutdown feedback was sending a short report without creating a THD. At that point current_thd was pointing to the already destroyed THD from the previous full report. backport from 10.1: commit bfe703a Author: Sergei Golubchik <serg@mariadb.org> Date: Tue Feb 3 18:19:56 2015 +0100 don't let current_thd to point to a destroyed THD
| | * | | Merge branch '5.5' into 10.0Sergei Golubchik2015-12-131-0/+4
| | |\ \ \ | | | |/ /