Edit an object class

Not all schema changes are allowed. See Disallowed schema changes for change restrictions.

Web administration

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

  1. Click the radio button next to the object class that you want to edit.
  2. Click Edit .
  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

To edit an object class using the command line, issue the following command:

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

where <filename>contains:

dn: cn=schema
changetype: modify
replace: objectclasses
objectclasses: ( <myobjectClass-oid> NAME '<myObjectClass>' DESC '<An object class
                 I defined for my LDAP application>' SUP '<newsuperiorclassobject>'
                 <newobjectclasstype> MAY (attribute1> $ <attribute2>
                  $ <newattribute3>) )