public void removeMember(String groupDN, String memberDN) throws Exception {
LdapContext ctxt = getWiredContext();
BasicAttributes attrs = new BasicAttributes();
attrs.put("member", memberDN);
ctxt.modifyAttributes(groupDN, DirContext.REMOVE_ATTRIBUTE, attrs);
}
private static String buildDn(String name, boolean isGroup) {
StringBuilder dn = new StringBuilder();
dn.append("cn=").append(name).append(',');