Using the command line
You can copy an object class using the commands provided here at command line.
About this task
View the object classes contained in the schema issue
the command:
idsldapsearch -b cn=schema -s base objectclass=* objectclassesSelect
the object class that you want to copy. Use an editor to change the
appropriate information and save the changes to <filename>.
The issue the following command:
idsldapmodify -D <adminDN> -w <adminPW> -i <filename>where <filename>contains: dn: cn=schema
changetype: modify
replace: objectclasses
objectclasses: ( <mynewobjectClass-oid> NAME '<mynewObjectClass>'
DESC '<A new object class I copied for my LDAP application>'
SUP '<superiorclassobject>'<objectclasstype>
MUST (<attribute1> $ <attribute2>)
MAY (>attribute3> $ <attribute4> $ <attribute3>) )