Server IP : 104.21.38.3 / Your IP : 172.70.147.106 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/auth_sec/t/ |
Upload File : |
--source include/not_embedded.inc --source include/have_validate_password_plugin.inc call mtr.add_suppression("Dictionary file not specified"); --echo # Setup : Restart server with --early_plugin_load option --exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect -- send_shutdown -- source include/wait_until_disconnected.inc --exec echo "restart:--early-plugin-load="validate_password=$VALIDATE_PASSWORD" --validate_password_length=10" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --enable_reconnect --source include/wait_until_connected_again.inc --disable_reconnect --echo # 1. Check that VALIDATE_PASSWORD plugin is installed properly SELECT PLUGIN_NAME, PLUGIN_STATUS, LOAD_OPTION FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME LIKE 'VALIDATE_PASSWORD'; #should be 10 SHOW VARIABLES LIKE 'validate_password_length'; --echo # 2. Use VALIDATE_PASSWORD plugin --error ER_NOT_VALID_PASSWORD CREATE USER foo@localhost IDENTIFIED BY 'abcd'; CREATE USER foo@localhost IDENTIFIED BY 'C0mPl3%P@sSw0rD'; DROP USER foo@localhost; --echo # 3. Try uninstalling VALIDATE_PASSWORD plugin UNINSTALL PLUGIN VALIDATE_PASSWORD; --disable_warnings --source include/force_restart.inc --enable_warnings