class AuthenticationManagerLdapTemplate {

    protected void modifyAttributes(DirContext dirContext, User user, ModificationItem[] mods) throws NamingException {
        dirContext.modifyAttributes(user.getLdapName(), mods);
    }

}