Using the command line
You can use the commands provided here to add attributes.
About this task
The following example adds an attribute type definition
for an attribute called "myAttribute", with Directory String syntax
(see Attribute syntax)
and Case Ignore Equality matching (see Equality matching rules).
The IBM-specific part of the definition says that the attribute data
is stored in a column named "myAttrColumn" in a table called "myAttrTable".
If these names were not specified, both the column and table name
would have defaulted to "myAttribute".The attribute is assigned to
the "normal" access class, and values have a maximum length of 200
bytes.
idsldapmodify -D <admindn> -w <adminpw> -i myschema.ldifwhere
the myschema.ldif file contains: dn: cn=schema
changetype: modify
add: 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 )
-
add: ibmattributetypes
ibmattributetypes: ( myAttribute-oidDBNAME ( 'myAttrTable' 'myAttrColumn' )
ACCESS-CLASS normal LENGTH 200 ) Note: In this example,
there are two locations where "length" can be specified. In this example,
See the idsldapmodify and idsldapadd command
information in the Command Reference for more information.200 is
the specified length. For example: {200} USAGE userApplications )ACCESS-CLASS normal LENGTH 200 )