SpringSource/spring-security — pull request #6 by pdrados (2012-05-02 16:00:35+00:00)
Title: Throw PasswordPolicyException not only when account is locked

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...