Closed GoogleCodeExporter closed 9 years ago
After tracing through the code for how password policies get applied, I
understand how results in the result I'm seeing. Configurations saved in the
PwmConfiguration.xml do get loaded correctly as the servlet boots. However,
every configuration setting about password policies gets merged with a
secondary set of "defaults" in the class PwmPasswordPolicy. I don't know what
"Chai" password policies entail, but they're not what I want!
For each configuration setting, if the type is a boolean, as in "allow
numeric", then there is a rule on merging it with the default Chai policy. The
merge is either an AND or OR as in PwmPasswordPolicy.java line 178. It would
seem these are all effectively hardcoded to AND as defined in the enum
PwmPasswordRule. The result is always False, because the Chai policy is False.
I would suggest pushing the 'positiveMerge' to the PwmConfiguration.xml, or
have a single setting not to merge user configs against some under-the-hood
default.
In any case, thanks for the hard work! Looks like a great product.
Original comment by brucey...@gmail.com
on 17 Apr 2014 at 1:00
There already is a setting to use the local, pwm defined policies and not merge
them with the chai (ldap defined policies, which chai doesn't read apacheDS
policies if they exist)
Original comment by jrivard
on 24 Apr 2014 at 2:10
Original issue reported on code.google.com by
brucey...@gmail.com
on 16 Apr 2014 at 12:04