@Override
    public boolean unlockAccount(final Credential credential) {
        return findEntries(CollectionUtils.wrap(credential.getId())).entrySet().stream().allMatch(entry -> {
            LOGGER.debug("Located LDAP entry [{}] in the response", entry);
            val ldapConnectionFactory = new LdapConnectionFactory(connectionFactoryMap.get(entry.getValue().getLdapUrl()));
            val attributes = new LinkedHashMap<String, Set<String>>();
            attributes.put(entry.getValue().getAccountLockedAttribute(), Set.of(entry.getValue().getAccountUnlockedAttributeValues()));
            return ldapConnectionFactory.executeModifyOperation(entry.getKey().getDn(), attributes);
        });
    }
This is {@link LdapPasswordManagementService}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-pm-ldap/src/main/java/org/apereo/cas/pm/LdapPasswordManagementService.java