public static void modifyLdapEntries(final LDAPConnection connection, final Collection<LdapEntry> entries,
                                         final BindConnectionInitializer connInit) {
        entries.forEach(entry -> {
            LOGGER.debug("Modifying LDAP entry [{}]", entry);
            entry.getAttributes().forEach(ldapAttribute -> modifyLdapEntry(connection, entry, ldapAttribute, connInit));
        });
    }
Modify ldap entries.

@param connection the connection
@param entries    the entries
@param connInit   the connection initializer
support/cas-server-support-ldap-core/src/test/java/org/apereo/cas/util/LdapTestUtils.java