Using the command line

You can use the commands provided here to modify attributes.

About this task

This example adds indexing to the attribute, so that searching on it is faster. Use the idsldapmodify command and the LDIF file to change the definition.
Note: You can only increase the size of the attribute length. If you need to reduce the size of the attribute length, you must perform additional steps before editing the attribute. See Manual procedure for changing existing attributes.
idsldapmodify -D <admindn> -w <adminpw> -i myschemachange.ldif
Where the myschemachange.ldif file contains:
dn: cn=schema
changetype: modify
replace: attributetypes
attributetypes: ( myAttribute-oid NAME ( 'myAttribute' ) DESC 'An attribute 
I defined for my LDAP application' EQUALITY 2.5.13.2 
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 {200} USAGE userApplications )
-
replace: ibmattributetypes
ibmattributetypes: ( myAttribute-oidDBNAME ( 'myAttrTable' 'myAttrColumn' ) 
ACCESS-CLASS normal LENGTH 200 EQUALITY SUBSTR )
Note: Both portions of the definition (attributetypes and ibmattributetypes) must be included in the replace operation, even though only the ibmattributetypes section is changing.The only change is adding "EQUALITY SUBSTR" to the end of the definition to request indexes for equality and substring matching.
See the idsldapadd command information in the Command Reference for more information about this utility.