Feature #82479

Support longer database passwords

Added by Tobias Hüske 13 days ago. Updated 12 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2017-09-13
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hey!

At the moment TYPO3 throws an error message when entering a database password that is larger than 50 characters.

See in file:

typo3/sysext/install/Classes/Controller/Action/Step/DatabaseConnect.php

            if (isset($postValues['password'])) {
                $value = $postValues['password'];
                if (strlen($value) <= 50) {
                    $defaultConnectionSettings['password'] = $value;
                } else {
                    $messages[] = new FlashMessage(
                        'iven password must be shorter than fifty characters.',
                        'Database password not valid',
                        FlashMessage::ERROR
                    );
                }
            }

Microsoft SQL Server passwords can contain up to 128 characters, MySQL & PostgreSQL have no limitations.

I think the best way is raising TYPO3s limit for supporting longer (and safer) passwords.

Tobias

History

#1 Updated by Gerrit Code Review 13 days ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54137

#2 Updated by Gerrit Code Review 12 days ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54137

Also available in: Atom PDF