
December 17th, 2003, 02:51 AM
|
|
Registered User
|
|
Join Date: Dec 2003
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
LDAPAttributeSchema
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.*/
newAttrType.add(ld);
|