mreynolds / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

d357888 Issue 49642 - lib389 should generate a more complex password

Authored and Committed by spichugi 5 years ago
    Issue 49642 - lib389 should generate a more complex password
    
    Bug description: New NSS versions require a password to be more complex.
    The password should be at least 7 characters long,
    and should consist of at least three character classes.
    The available character classes are: digits (0-9), ASCII
    lowercase letters, ASCII uppercase letters, ASCII
    non-alphanumeric characters, and non-ASCII characters.
    
    Fix description: Refactor password_generate function
    so it fullfils the minimal requirements. Also, make
    the fuction generate more secure password.
    Add the docstrings to the passwd.py module.
    
    https://pagure.io/389-ds-base/issue/49642
    
    Reviewed by: mreynolds (Thanks!)
    
        
file modified
+39 -2