Re: How can I delete values of an multi-value attribute?
Monday, August 18, 2003 02:27 AM
ok, forget it. it is very simple. just take the REMOVE_ATTRIBUTE method of the class DirContext.
Attribute mod1 = new BasicAttribute("member", "uid=Name");
mods = new ModificationItem(DirContext.REMOVE_ATTRIBUTE, mod1);