Bug #66714 Allow password verification dictionary to use /usr/share/dict/words
Description:
The password validation dictionary file contains several restrictions which make it difficult to use /usr/share/dict/words:
1. Limitation to files < 1MB in size
2. Requirement to specify all dictionary words in lower case.
On Oracle Linux 6.3, the default dictionary is 4.8M, and contains mixed-case words.
Because the contents are cached, it seems it would be reasonable to accept mixed-case strings, transforming them to lower-case as they are read, and retaining the existing case-insensitive matching.
During cache loading, any words less than 4 characters in length (minimum matching criteria) can be ignored.
Users should be able to specify a larger dictionary as needed, although we might choose to warn when the cache is loaded and the contents exceed a certain threshold, potentially slowing execution of PASSWORD() function.
How to repeat:
See above.
Suggested fix:
1. Relax size limitation to account for larger dictionaries, perhaps warning when threshold is exceeded.
2. Convert all strings to lower-case on loading the validation cache.
3. Ignore words in dictionary under 4 characters in length.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.059 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.