summaryrefslogtreecommitdiff
path: root/mysql-test/t/plugin_auth.test
Commit message (Collapse)AuthorAgeFilesLines
* 10.0-base mergeSergei Golubchik2013-12-161-1/+1
|\
| * 5.5 mergeSergei Golubchik2013-11-231-1/+1
| |\
| | * mysql-5.5.34 mergeSergei Golubchik2013-11-191-1/+1
| | |\ | | | | | | | | | | | | (some patches reverted, test case added)
| | | * Bug#16995954 : PLUGIN_AUTH TESTS FAIL ON SYSTEMS WITH NO HOSTNAME OTHERSneha Modi2013-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | THAN LOCALHOST This is a test bug and the explanation for the behaviour can be found on the bug page.Modifying the select to select user where user!=root for the line where failure is encountered on machines with no hostname other than the localhost.
* | | | 10.0-base merge (roles)Sergei Golubchik2013-10-291-13/+12
|\ \ \ \ | |/ / /
| * | | Remove the very old historical but never documented behavior,Sergei Golubchik2013-10-181-13/+12
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | than an empty host '' is the same as any-host wildcard '%'. Replace '' with '%' in the parser (for GRANT ... foo@'') and when loading grant tables. Side effect: one cannot have foo@'' and foo@'%' both at the same time (but one can have foo@'%' and foo@'%%')
* | | 10.0-base mergeSergei Golubchik2013-01-311-6/+20
|\ \ \ | |/ /
| * | mysql-5.5.29 mergeSergei Golubchik2013-01-151-6/+20
| |\ \ | | |/
| | * Bug #14211140: CRASH WHEN GRANTING OR REVOKING PROXYHarin Vadodaria2012-10-091-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PRIVILEGES Description: (user,host) pair from security context is used privilege checking at the time of granting or revoking proxy privileges. This creates problem when server is started with --skip-name-resolve option because host will not contain any value. Checks should be dependent on consistent values regardless the way server is started. Further, privilege check should use (priv_user,priv_host) pair rather than values obtained from inbound connection because this pair represents the correct account context obtained from mysql.user table.
| | * Bug #12998841: libmysql divulges plaintext password upon request in 5.5Georgi Kodinov2012-07-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Clear text password client plugin disabled by default. 2. Added an environment variable LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN, that when set to something starting with '1', 'Y' or 'y' will enable the clear text plugin for all connections. 3. Added a new mysql_options() option : MYSQL_ENABLE_CLEARTEXT_PLUGIN that takes an my_bool argument. When the value of the argument is non-zero the clear text plugin is enabled for this connection only. 4. Added an enable-cleartext-plugin config file option that takes a numeric argument. If the numeric value of the numeric argument is non-zero the clear text plugin is enabled for the connection 5. Added a boolean command line option "--enable_cleartext_plugin" to mysql, mysqlslap and mysqladmin. When specified it will call mysql_options with the effect of #3 6. Added a new CLEARTEXT option to the connect command in mysqltest. When specified it will enable the cleartext plugin for usage. 7. Added test cases and updated existing ones that need the clear text plugin.
* | | Fixing test casesMichael Widenius2012-08-231-0/+1
|/ / | | | | | | Added missing system tables used in 5.6
* | mysql-5.5.18 mergeSergei Golubchik2011-11-031-0/+59
|\ \ | |/
| * re-commit of bug #12818542: PAM: ADDING PASSWORD FOR AN ACCOUNT DISABLES Georgi Kodinov2011-08-121-0/+31
| | | | | | | | | | PAM AUTHENTICATION SETTINGS to the release clone.
| * Merge from mysql-5.5.14-releaseunknown2011-07-061-0/+14
| |\
| | * BUG 12610784: SET PASSWORD INCORRECTLY KEEP AN OLD EMPTY PASSWORDGeorgi Kodinov2011-06-011-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check for empty password in the user account was checking the wrong field. Fixed to check the proper password hash. Test case added. Fixed native_password and old_password plugins that suffered from the same problems. Unambuguated the auth_string ACL_USER member : previously it was used for both password and the authentication string (depending on the plugin). Now fixed to contain either the authentication string specified or empty string.
| * | Bug #11766641: 59792: BIN/MYSQL -UUNKNOWN -PUNKNOWN Georgi Kodinov2011-05-161-0/+14
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | .-> USING PASSWORD: NO The server was always setting the flag for using password to NO and then relying on the server authentication plugin to update it if it uses a password. This creates compatibility problems with 5.1 when rejecting a nonexistent user login. Set the default for the password supplied flag for non-existing users as the default plugin (native password authentication) would do it for compatibility reasons. Test case added. federated.result updated with the correct error message.
* | post-merge fixes.Sergei Golubchik2011-07-021-13/+8
|/ | | | | most tests pass. 5.3 merge is next
* Merged the fix for bug #11936829 to 5.5.11 release Georgi Kodinov2011-03-311-0/+22
| | | | | | | | | | | | | | | Bug #11936829: DIFF. BETWEEN MYSQL.USER (AUTHENTICATION_STRING) IN FRESH AND UPGRADED 5.5.11 There was no modification for pre 5.5.11 builds that had authentication_string. Thus the column was not upgraded by mysql_upgrade. Fixed by adding an ALTER TABLE MODIFY to update an existing column to the latest type version. Test suite added.
* Bug # 11766011: mysql.user.authentication_string column causes Georgi Kodinov2011-03-181-0/+57
| | | | | | | | configuration wizard to fail Made the fields mysql.user.plugin and mysql.user.authentication_string nullable to conform with some older clients doing inserts instead of using the commands.
* Bug #59657: Move the client authentication_pam plugin into the server repositoryGeorgi Kodinov2011-01-311-0/+22
| | | | | | Created a clear text built in client authentication plugin. Test case added. Added a negative test case : a login failure.
* Bug#58139 : default-auth option not recognized in MySQL standardNirbhay Choubey2011-01-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command line clients. Postfix covering other mysql standard clients like mysql_upgrade, mysqlbinlog, mysqlcheck, mysqlimport, mysqlshow and mysqlslap. client/client_priv.h: Bug#58139 : default-auth option not recognized in MySQL standard command line clients Added an entry for 'default-auth' option. client/mysql.cc: Bug#58139 : default-auth option not recognized in MySQL standard command line clients Updated the id entry for default_auth option. client/mysql_upgrade.c: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. client/mysqladmin.cc: Bug#58139 : default-auth option not recognized in MySQL standard command line clients Updated the id entry for default_auth option. client/mysqlbinlog.cc: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. client/mysqlcheck.c: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. client/mysqldump.c: Bug#58139 : default-auth option not recognized in MySQL standard command line clients Updated the id entry for default_auth option. client/mysqlimport.c: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. client/mysqlshow.c: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. client/mysqlslap.c: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. mysql-test/r/plugin_auth.result: Added test case for Bug#58139 for mysql_upgrade. mysql-test/t/plugin_auth.test: Added test case for Bug#58139 for mysql_upgrade.
* Additional fix in the test for Bug#58139.Nirbhay Choubey2010-12-071-1/+1
|
* Bug#58139 : default-auth option not recognized in MySQL standardNirbhay Choubey2010-12-071-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command line clients. Command line tools like mysqladmin and mysqldump did not recognize default-auth and plugin-dir options. Support for these options was found missing in these command line tools. Fixed by adding support for the same. client/mysqladmin.cc: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. client/mysqldump.c: Bug#58139 : default-auth option not recognized in MySQL standard command line clients. Introduced two new variables to hold values from default-auth and plugin-dir options and further pushed them to client's st_mysql instance. mysql-test/r/plugin_auth.result: Added test case for Bug#58139. mysql-test/t/plugin_auth.test: Added test case for Bug#58139.
* Bug #57551: Live upgrade fails between 5.1.52 -> 5.5.7-rcGeorgi Kodinov2010-11-191-0/+60
| | | | | | | | | | | | | | | Updated the server to treat a missing mysql.proxies_priv table as empty. Added some grants to make sure tables are correctly opened when they must be opened. Fixed a mysql_upgrade omission not adding rights to root to execute GRANT PROXY on other users. Removed a redundant CREATE TABLE from mysql_system_tables_fix.sql since it's always executed after mysql_system_tables.sql and the first file has CREATE TABLE in it. Added a test case for the above. Fixed error handling code to close the cursor
* Addendum to bug #57916 : fixed the test suite to be less environment Georgi Kodinov2010-11-031-1/+1
| | | | | dependent.
* Bug #57916: Fix the naming of the proxy_priv tableGeorgi Kodinov2010-11-021-1/+6
| | | | | | | | | 1. Fixed the name of the table to proxies_priv 2. Fixed the column names to be of the form Capitalized_lowecarse instead of Capitalized_Capitalized 3. Added Timestamp and Grantor columns 4. Added tests to plugin_auth to check the table structure 5. Updated the existing tests
* Bug #56798 : Wrong credentials assigned when using a proxy user.Georgi Kodinov2010-09-201-0/+34
| | | | | | | | | | | | Fixed incorrect handling of user credentials when authenticating via proxy user. Now the server will use the proxies user's access mask and host to update the security context runtime structure when logging in. Fixed a compilation warning with the embedded library. Fixed a crash when doing a second GRANT PROXY on ''@'' due to incomplete equality check logic.
* WL#1054: Pluggable authentication supportGeorgi Kodinov2010-08-091-0/+298
Merged the implementation to a new base tree.