// ---------------------------------------------------------------------------
private void addHive(String sDN, String sCN)
throws com.knowgate.ldap.LDAPException {
LDAPAttributeSet attrs;
if (DebugFile.trace) {
DebugFile.writeln("LDAPNovell.addHive(" + sDN + "," + sCN + ")");
}
try {
attrs = new LDAPAttributeSet();
attrs.add(new LDAPAttribute("objectClass", new String[] {"dcObject",
"organizationalUnit"}));
attrs.add(new LDAPAttribute("dc", sCN));
attrs.add(new LDAPAttribute("ou", sCN));
oConn.add(new LDAPEntry(sDN, attrs));
}
catch (com.novell.ldap.LDAPException xcpt) {
throw new com.knowgate.ldap.LDAPException(xcpt.getMessage(), xcpt);
}