Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM v2.0.6 baaefbe7: Error, password.RandomPasswordGenerator, Generator does not match policy #701

Closed
sven-probst opened this issue Jun 5, 2023 · 2 comments

Comments

@sven-probst
Copy link

the password-generator in the helpdesk-module does not match the password-policy:

2023-06-02T07:31:00Z, DEBUG, password.PasswordUtility, {vDFFt,admin} merged user password policy of 'CN=xxxxx' with PWM configured policy: PwmPasswordPolicy: {"policyMap":{"chai.pwrule.repeat.max":"0","chai.pwrule.changeMessage":"","chai.pwrule.upper.min":"0","chai.pwrule.allowUserChange":"true"
,"chai.pwrule.disallowedValues":"password\ntest","password.policy.disallowCurrent":"true","chai.pwrule.allowAdminChange":"true","chai.pwrule.uniqueRequired":"false","passwor
d.policy.allowNonAlpha":"true","chai.pwrule.unique.max":"0","chai.pwrule.special.max":"0","chai.pwrule.enforceAtLogin":"false","password.policy.charGroup.regExValues":".*[0-
9]\n.*[^A-Za-z0-9]\n.*[A-Z]\n.*[a-z]","chai.pwrule.policyEnabled":"true","chai.pwrule.lower.max":"0","password.policy.checkWordlist":"true","chai.pwrule.upper.max":"0","chai.pwrule.unique.min":"0","chai.pwrule.length.min":"25","password.policy.maximumAlpha":"0","chai.pwrule.numeric.allow":"true","password.policy.minimumNonAlpha":"0","chai.pwrule.challengeResponseEnabled":"false","password.policy.regExMatch":"","chai.pwrule.length.max":"64","password.policy.ADComplexityLevel":"AD2008","password.policy.minimumStrength":"0","chai.pwrule.disallowedAttributes":"givenName\ncn\nsn","password.policy.charGroup.minimumMatch":"0","chai.pwrule.sequentialRepeat.max":"0","password.policy.minimumAlpha":"0","chai.pwrule.lower.min":"0","password.policy.allowMacroInRegexSetting":"true","chai.pwrule.numeric.allowLast":"true","chai.pwrule.numeric.allowFirst":"true","chai.pwrule.special.allow":"true","chai.pwrule.expirationInterval":"0","chai.pwrule.special.min":"0","password.policy.maximumNonAlpha":"0","chai.pwrule.numeric.max":"0","chai.pwrule.ADComplexityMaxViolation":"2","chai.pwrule.numeric.min":"0","chai.pwrule.special.allowFirst":"true","chai.pwrule.special.allowLast":"true","password.policy.maximumConsecutive":"0","chai.pwrule.caseSensitive":"true","chai.pwrule.lifetime.minimum":"0","password.policy.regExNoMatch":""}} [xxx.xxx.xxx.xxx]
2023-06-02T07:31:00Z, TRACE, password.PasswordUtility, {vDFFt,admin} readPasswordPolicyForUser completed (7ms) [xxx.xxx.xxx.xxx]
2023-06-02T07:31:00Z, ERROR, password.RandomPasswordGenerator, {vDFFt,admin} failed random password generation after 38ms after 2000 tries. (errors=6, judgeLevel=37 [xxx.xxx.xxx.xxx]

Policy is evaluated correct to:

"chai.pwrule.length.min":"25"
"chai.pwrule.length.max":"64"

but the generator only show passwords with less than 16 characters.

According to comment in https://groups.google.com/g/pwm-general/c/xRI4ruayckM this is not only related to the helpdesk-module.

jrivard added a commit that referenced this issue Jun 26, 2023
jrivard added a commit that referenced this issue Jun 26, 2023
@jrivard
Copy link
Contributor

jrivard commented Jun 26, 2023

@sven-probst if your able to test either the v2_0 and/or master branch updates with your config that would be helpful.

@jrivard jrivard closed this as completed Jun 26, 2023
@sven-probst
Copy link
Author

ok, this looks much better, thank you! The table in v2.1.0-SNAPSHOT contains only passwords that match the policy. By the way, is it possible to extract Microsoft FGPP (Fine Grained Password Policies) from the AD to use this direct in PWM? Now we have to "copy" the policies in AD to pwm-policies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants