263264265266267268269270271272273
LDAPAttributeSet attrs = new LDAPAttributeSet(); LDAPAttribute attr = new LDAPAttribute("objectclass"); for (int i = 0; i < objectclass_values.length; i++) { attr.addValue(objectclass_values[i]); } attrs.add(attr); // The add string will look like this: cn=x,y|sn=u,z|x3=p...
315316317318319320321322323324325
StringTokenizer ts = new StringTokenizer(st.nextToken(), "=,"); attr = new LDAPAttribute(ts.nextToken()); while (ts.hasMoreTokens()) { attr.addValue(ts.nextToken()); } System.out.println("Add:" + attr); if (attrs instanceof LDAPModificationSet) {