summaryrefslogtreecommitdiff
path: root/mysql-test/suite/plugins
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-8211 plugins.server_audit fails sporadically in buildbot.Alexey Botchkov2015-06-082-0/+2
| | | | More fixes to assure the order of queries in the log.
* MDEV-8211 plugins.server_audit fails sporadically in buildbot.Alexey Botchkov2015-06-081-0/+1
| | | | | This test also should be fixed - delay added so the connection event doesn't happen before the query.
* MDEV-8211 plugins.server_audit fails sporadically in buildbot.Alexey Botchkov2015-06-081-0/+1
| | | | | Connection event can happen before the query ends. Added a delay to confirm the order.
* MDEV-7500 thread_handling option in my.cnf is not passing "connect events" ↵Alexey Botchkov2015-06-083-0/+500
| | | | | | | to audit plugin. The MYSQL_AUDIT_NOTIFY_CONNECTION_CONNECT() call moved to the login_connection() function. So that it'll be invoked in any thread handling mode.
* MDEV-8078 Memory disclosure/buffer overread on audit plugin.Alexey Botchkov2015-06-072-0/+5
| | | | | | | If the SET PASSWORD query doesn't have the password string, the parsing of it can fail. It manifested first in MySQL 5.6 as it started to hide password lines sent to the plugins. Fixed by checking for that case.
* MDEV-8032 [PATCH] audit plugin - csv output broken.Alexey Botchkov2015-06-062-0/+9
| | | | | Symbols like TAB or NEWLINE should be escaped, which was forgotten in one place.
* MDEV-7596 audit plugin - record full query / document line length / make ↵Alexey Botchkov2015-03-312-0/+64
| | | | | | | buffer configurable. The serve_audit_query_log_limit variable implemented. Also QUERY_DCL filter added.
* MDEV-7641 Server crash on set global server_audit_incl_users=null.Alexey Botchkov2015-03-192-0/+4
| | | | | plugin_variable_update() can get NULL as a value for a string parameter. Needs to be checked and handled properly.
* Audit plugin v1.2.0.Alexey Botchkov2015-02-082-16/+160
|
* MDEV-7089: Test failures in main.failed_auth_unixsocket and ↵Kristian Nielsen2014-11-121-3/+7
| | | | | | | | | | | | | plugins.unix_socket depending on environment The test cases had some --replace_result $USER USER. The problem is that the value of $USER can be anything, depending on the name of the unix account that runs the test suite. So random parts of the result can be errorneously replaced, causing test failures. Fix by making the replacements more specific, so they will match only the intended stuff regardless of the value of $USER.
* MDEV-4856 SQL_ERROR_LOG shows 1146 errors which didnt appear in mysql client.Alexey Botchkov2014-04-152-0/+4
| | | | | | | | | | | | The fill_schema_table() function used to call get_table_share() for a table name in WHERE then clear the error list. That way plugins receive the superfluous error notification if it happens in it. Also the problem was that error handler didn't prevent the suppressed error message from logging anyway as the logging happens in THD::raise_condition before the handler call. Trigger_error_handler is remade into Warnings_only_error_handler, so it stores the error message in all cases in the thd->stmt_da. Then later the stored error is raised.
* MDEV-5905: Creating tmp. memory table kills the serverMichael Widenius2014-03-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason was that a couple of variables that hold number of rows that was used to calculate buffers was uint and caused an overflow. Fixed by changing variables that could hold number of rows from uint to ulong and also added a cast for this test. include/heap.h: Reorder to get better alignment. Changed variables that could hold number of rows from uint to ulong mysql-test/suite/heap/heap.result: Added test case mysql-test/suite/heap/heap.test: Added test case mysql-test/suite/plugins/t/server_audit.test: Added sleep as we want to have disconnect logged before we try a new connect storage/heap/ha_heap.cc: Changed variables that could hold number of rows from uint to ulong Limit number of rows to 4G (as most of the variables that holds rows are ulong anyway) reset records_changed when key_stat_version is changed to not cause increments for every row changed storage/heap/ha_heap.h: changed records_changed to ulong as this can get big storage/heap/hp_create.c: Changed variables that could hold number of rows from uint to ulong Added cast (fixed the original bug) storage/heap/hp_delete.c: Changed variables that could hold number of rows from uint to ulong storage/heap/hp_open.c: Removed not needed cast storage/heap/hp_write.c: Changed variables that could hold number of rows from uint to ulong support-files/compiler_warnings.supp: Removed extra : from supression
* 5.3-mergeSergei Golubchik2014-03-161-17/+1
|\
| * mtr: move if(unix_socket) test to include/have_unix_socket.incSergei Golubchik2014-03-131-5/+1
| |
* | MariaDB Audit plugin added.Alexey Botchkov2014-02-243-0/+273
| |
* | unix_socket fails in some build environments when $USER variableElena Stepanova2014-02-051-0/+13
| | | | | | | | | | | | appears to be unset, or when it contains 'root' even though the user does not have real root permissions
* | MDEV-5419 no audit events for warnings converted to errors in the strict mode.Alexey Botchkov2014-01-241-1/+1
| | | | | | | | | | small fix in the --replace_regex template.
* | MDEV-5419 no audit events for warnings converted to errors in the strict mode.Alexey Botchkov2014-01-232-0/+100
| | | | | | | | | | | | | | | | | | Plugins get error notifications only when my_message_sql() is called. But errors are launched with THD::raise_condition() calls in other places. These are push_warning(), implementations of SIGNAL and RESIGNAL commands. So it makes sence to notify plugins there in THD::raise_condition().
* | Merge from 5.3Alexander Barkov2013-07-102-0/+8
|\ \ | |/
| * Merge from 5.1Alexander Barkov2013-07-092-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | modified: mysql-test/suite/plugins/r/fulltext_plugin.result mysql-test/suite/plugins/t/fulltext_plugin.test plugin/fulltext/plugin_example.c sql/sql_show.cc pending merges: Sergei Golubchik 2013-07-06 Bug #69682 - mysqld crashes after uninstall ... Sergei Golubchik 2013-05-24 MDEV-4575 MySQL client doesn't strip off...
* | MDEV-4636 use mysql_cleartext_plugin from auth_pamSergei Golubchik2013-06-115-12/+38
| | | | | | | | add a new command-line option --pam-use-cleartext-plugin
* | MDEV-4564 ALTER on a temporary table generates an audit eventSergei Golubchik2013-06-072-1/+4
| |
* | MDEV-4516 SELECT from I_S.QUERY_CACHE_INFO produces ER_UNKNOWN_ERROR when ↵Sergei Golubchik2013-05-242-0/+6
| | | | | | | | | | | | query cache size is 0 if qc->try_lock() fails, it's not an error
* | Fix test failure in plugins.unix_socket when running tests as user root.unknown2013-05-141-0/+3
| | | | | | | | | | | | (The problem is that if $USER is root, then the authentication will log in with the mysqld user root. And then CURRENT_USER() returns a valid user, giving .result file difference).
* | fix test on WindowsVladislav Vaintroub2013-04-281-1/+1
| |
* | MDEV-260 auditing table accessesSergei Golubchik2013-04-192-1/+101
| |
* | MDEV-4307 Support at least 48 utf8 characters in username in server and PAMSergei Golubchik2013-03-262-0/+44
| | | | | | | | | | Extend plugin auth api to support up to 512 bytes in the user names. Use the API versioning to support old auth plugins too!
* | fixes for windowsSergei Golubchik2013-03-252-2/+4
| |
* | MDEV-249 QUERY CACHE INFORMATIONSergei Golubchik2013-03-206-0/+75
| |
* | Test case and a different fix for MySQL bug#14485479Sergei Golubchik2013-01-152-0/+39
| |
* | 5.3->5.5 mergeSergei Golubchik2012-11-221-0/+2
|\ \ | |/
* | MDEV-259 audit plugin does not see sub-statementsSergei Golubchik2012-11-082-0/+18
| |
* | MDEV-258 audit plugin only see queries if general log is enabledSergei Golubchik2012-11-082-2/+5
| |
* | rename plugin null_audit -> audit_null (to match status variable names)Sergei Golubchik2012-11-072-0/+36
| | | | | | | | create audit_null.test
* | 5.3 mergeSergei Golubchik2012-10-182-2/+2
|\ \ | |/
| * a simple pam user mapper moduleSergei Golubchik2012-09-252-2/+2
| |
* | Fix test failure on --embedded-serverunknown2012-09-211-0/+3
| |
* | mdev-224 plugin usage statistics in the feedback reportsSergei Golubchik2012-04-183-3/+6
| |
* | overlay support for mysql-test-run and mysqltestSergei Golubchik2012-02-232-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysql-test-run auto-disables all optional plugins. mysql-test/include/default_client.cnf: no @OPT.plugindir anymore mysql-test/include/default_mysqld.cnf: don't disable plugins manually - mtr can do it better mysql-test/suite/innodb/t/innodb_bug47167.test: mtr now uses suite-dir as an include path mysql-test/suite/innodb/t/innodb_file_format.test: mtr now uses suite-dir as an include path mysql-test/t/partition_binlog.test: this test uses partitions storage/example/mysql-test/mtr/t/source.result: update results. as mysqltest includes the correct overlayed include storage/innobase/handler/ha_innodb.cc: the assert is wrong
* | 5.3.4 mergeSergei Golubchik2012-02-152-0/+86
|\ \ | |/
| * plugin renamed socket_peercred -> unix_socket.Sergei Golubchik2011-12-302-0/+86
| | | | | | | | test added.
* | make pam plugin to build in 5.5.Sergei Golubchik2012-02-032-1/+6
| | | | | | | | fix pam.tets for 5.5
* | 5.3 mergeSergei Golubchik2012-01-132-2/+5
|/
* PAM plugin with testSergei Golubchik2011-12-023-0/+76
|
* 1. add --plugin-dir and --default-auth to mysqltest.Sergei Golubchik2011-12-0212-0/+192
2. dialog plugin now always returns mysql->password if non-empty and the first question is of password type 3. split get_tty_password into get_tty_password_buff and strdup. 4. dialog plugin now uses get_tty_password by default 5. dialog.test 6. moved small tests of individual plugins into a dedicated suite