Add 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 create a new object class:

  1. Click Add.
    Note:
    You can also access this panel by expanding Schema management in the navigation area, then click Add an object class.
  2. At the General properties tab:
  3. At the Attributes tab:
  4. Click OK to add the new object class or click Cancel to return to Manage object classes without making any changes.
Note:
If you clicked OK on the General tab without adding any attributes, you can add attributes by editing the new object class.

Command line

To add 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
add: objectclasses
objectclasses: ( <myobjectClass-oid> NAME '<myObjectClass>' DESC '<An object class
                 I defined for my LDAP application>' SUP '<objectclassinheritance>'
                 <objectclasstype> MAY (<attribute1> $ <attribute2>))