Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAPAttributeSchema LDAPObjectClassSchema

Status
Not open for further replies.

DeSn

Programmer
Nov 20, 2001
111
BE
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);

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top