Skip to content

Throw PasswordPolicyException not only when account is locked #6

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

Closed
wants to merge 1 commit into from

Conversation

pdrados
Copy link

@pdrados pdrados commented May 2, 2012

With the original code spring-security-ldap throws PasswordPolicyException only when an account is locked. With this small change (tested against openldap), PasswordPolicyException are to be thrown when ErrorStatus is not null which covers most, if not all, ppolicy cases...

@rwinch
Copy link
Member

rwinch commented Aug 17, 2012

I'm afraid that translating a non-null ErrorStatus to PasswordPolicyException is not specific enough. If there is something more specific that you had in mind, please feel free to open a new pull request using the Contributor Guidelines as a guideline on how to proceed. Also keep in mind that there are quite a number of different OpenID implementations that will also be impacted.

@rwinch rwinch closed this Aug 17, 2012
bclozel added a commit to bclozel/spring-security that referenced this pull request Jan 4, 2017
rwinch added a commit that referenced this pull request Apr 21, 2025
rwinch added a commit that referenced this pull request Apr 21, 2025
  - Update to io.spring.gradle:spring-security-release-plugin:1.0.5

Closes gh-6.3.10 in 6.4.x
rwinch added a commit that referenced this pull request Apr 21, 2025
- io.spring.gradle:spring-security-release-plugin:1.0.5

Closes gh-6.3.10 in 6.4.x in 6.5.x
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

Successfully merging this pull request may close these issues.

2 participants