@Override
    public ConsentDecision storeConsentDecision(final ConsentDecision decision) throws Exception {
        LOGGER.debug("Storing consent decision [{}]", decision);
        val entry = readConsentEntry(decision.getPrincipal());
        if (entry != null) {
            val newConsent = mergeDecision(entry.getAttribute(ldapProperties.getConsentAttributeName()), decision);
            if (executeModifyOperation(newConsent, entry)) {
                return decision;
            }
        }
        LOGGER.debug("Unable to read consent entry for [{}]. Consent decision is not stored", decision.getPrincipal());
        return null;
    }
Removes decision from ldap attribute set.

@param ldapConsent the ldap attribute holding consent decisions
@param decisionId  the decision Id
@return the new decision set
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java