class LdapCustomAuthenticationProvider extends LdapAuthenticationProvider {

    protected Boolean checkExpiredPassword(Attributes attributes) {

        return attributes.get(LdapAttributes.PWD_GRACE_LOGIN) != null;

    }

    public  LdapCustomAuthenticationProvider(LdapAuthenticator authenticator,
                                            LdapAuthoritiesPopulator authoritiesPopulator);

}