Open tburguie opened 5 years ago
Hummm,
the ppolicy simple is meant to be... simple, I think it would be a better feat for a more complex ppolicy module such as:
https://github.com/kakwa/ldapcherry-ppolicy-cracklib/blob/master/lcppolicy_cracklib/__init__.py
Also, setting default value might be a good idea:
self.get_param('min_point')
self.get_param('min_point', 0)
Otherwise it will introduce a breaking change in the configuration format.
Add possibility to check for a certain number of lower, punctuation characters and a number of rule to check among min_lower, min_upper, min_digit, min_punct.