Copying an attribute
Use this information to copy an attribute.
Use either of the following methods to copy an attribute. The Web
administration tool is the preferred method.
If you have not done so already, expand Schema management in the navigation area, then click Manage attributes. To copy an attribute:
Note: If you clicked OK on the General tab
without adding any extensions, you can add or change extensions by editing
the new attribute.
To view the attributes contained in the schema, issue the command:
ldapsearch -b cn=schema -s base objectclass=* attributeTypes IBMAttributeTypesSelect the attribute that you want to copy. Use an editor to change the appropriate information and save the changes to <filename>. Then issue the following command:
ldapmodify -D <adminDN> -w <adminPW> -i <filename>
where <filename>contains:
dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( <mynewAttribute-oid> NAME '<mynewAttribute>' DESC '<A new
attribute I copied for my LDAP application> EQUALITY 2.5.13.2
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE userApplications )
-
add: ibmattributetypes
ibmattributetypes: ( myAttribute-oid DBNAME ( 'myAttrTable' 'myAttrColumn' )
ACCESS-CLASS normal LENGTH 200 )