Copy an object class

Web administration

If you have not done so already, expand Schema management in the navigation area, then click Manage object classes. To copy an object class:

  1. Click the radio button next to the object class that you want to copy.
  2. Click Copy.
  3. Select a tab:
  4. Click OK to apply the changes or click Cancel to return to Manage object classes without making any changes.

Command line

View the object classes contained in the schema issue the command:

ldapsearch -b cn=schema -s base objectclass=* objectclasses

Select the object class that you want to copy. Use an editor to change the appropriate information and save the changes to <filename>. Issue the following command:

ldapmodify -D <adminDN> -w <adminPW> -i <filename>

where <filename>contains:

dn: cn=schema
changetype: modify
add: objectclasses
objectclasses: ( <mynewobjectClass-oid> NAME '<mynewObjectClass>'
                DESC '<A new object class
                 I copied for my LDAP application>'
               SUP '<superiorclassobject>'<objectclasstype> MAY (attribute1>
               $ <attribute2> $ <attribute3>) )