IBM Security Directory Server, Version 6.3.1

Creating an index for an attribute from the command line

You can create attribute indexes to locate and retrieve the frequently used attributes faster.

Procedure

  1. Log in with the directory server instance owner credentials.
  2. To create an index for the seeAlso attribute, run the following command:
    ldapmodify -p port -D adminDN -w adminPW -i filename
    where, filename contains the following entries:
    dn: cn=schema
    changetype: modify
    replace: attributetypes
    attributetypes: ( 2.5.4.34 
     NAME 'seeAlso' 
     DESC 'Identifies another directory server entry that may 
    		contain information related to this entry.' 
     SUP 2.5.4.49 
     EQUALITY 2.5.13.1 
     USAGE userApplications )
    -
    replace: ibmattributetypes
    ibmattributetypes: ( 2.5.4.34 
     DBNAME( 'seeAlso''seeAlso' ) 
     ACCESS-CLASS normal 
     LENGTH 1000 
     EQUALITY )
  3. Run the runstats command against the directory server to update the DB2® statistics after you create an index.
    idsrunstats -I instance_name
    where, instance_name is the directory server instance name.


Feedback