/* Construct a new LDAPSchema object to hold the schema that you want to
retrieve. */
ld.connect(hostname, portnumber, bindDN, bindPW);
/* Add a new object class. */
/* Note you need Directory Server 4 or later for this part because of bug in
version 3 with adding an object class that is a subclass of an existing class. */
String[] requiredAttrs = new String[1];
String[] optionalAttrs = new String[9];
/* Add the new object class to the schema. */
userObjectClass.add(ld);
ld.disconnect();
} catch (Exception e) {
System.err.println(e.toString());
System.exit(1);
}
System.exit(0);
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.