[MDEV-4013] Password length in replication setup Created: 2013-01-08 Updated: 2013-01-10 Resolved: 2013-01-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 5.5.30 |
| Type: | Task | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Attachments: |
|
| Description |
|
There was an IRC discussion on master_password length, and two points came up: 1. Max length for master password in replication setup is 32, Monty wanted to add an error if a longer one is used: <montywi> elenst: would it be fast for you to do a rpl test that would test connecting with a password of 32 and then 33 ? 2. If non-ascii symbols are used in the master password, it decreases the max length <montywi> elenst: can you also add the above example to the mtr test. So, I've attached an MTR test case with result file, which tries 4 replication passwords:
|
| Comments |
| Comment by Elena Stepanova [ 2013-01-08 ] |
|
Server behavior in MySQL 5.5.28 is the same, but a typo in MySQL's include/wait_for_slave_param.inc doesn't allow the same test case to work on MySQL (fixed in maria/5.5 by knielsen, revno: 3178 revision-id: knielsen@knielsen-hq.org-20111214110203-nl2k00i85g16cnvj). |
| Comment by Michael Widenius [ 2013-01-09 ] |
|
I have now added error checking and a proper error message if MASTER_HOST, MASTER_USER or MASTER_PASSWORD exceed the expected length. |
| Comment by Michael Widenius [ 2013-01-09 ] |
|
I also extended length of MASTER_HOST and MASTER_PASSWORD to be able to handle at least |
| Comment by Michael Widenius [ 2013-01-09 ] |
|
Fixed |