Is there anyone who can help me. I can create a new attribute (with the following java code), but I don't know how I can "link" this attribute to an objectclass...

/* Get the schema from the Directory. Anonymous access okay. */
LDAPSchema dirSchema = new LDAPSchema();
dirSchema.fetchSchema( ld );
int syn = LDAPAttributeSchema.cis;

/* Create a new attribute %>
LDAPAttributeSchema newAttrType= new LDAPAttributeSchema(name,oid,description,syn,true);

/* Add the new attribute type to the schema.*/