set attribute Command -- Define an Attribute
The set attribute command defines an attribute. An attribute is a basic building block in the schema, and it consists of an attribute name, alternate name, syntax, single-valued flag, and a description.
cad
The
set attribute
command defines an attribute. An attribute is a basic building block in the schema, and it consists of an attribute name, alternate name, syntax, single-valued flag, and a description.For more information, see Set Up Schemas.
This command has the following format:
set attribute OID[:OID_Suffix] = { name = attribute-name ldap-names = cn equality = ordering = substr = syntax = [ single-valued | multi-valued ] [ no-user-modification ] [ description ] };
- OIDSpecifies the object ID for the attribute. An OID has one of the following forms:
- A dotted numeric string surrounded by brackets (), for example:(2.5.4.10)
- The name of an OID, as produced by the set OID-Prefix command
- OID_Suffix(Optional) Further specifies the OID.
- name =attribute-nameSpecifies the name of the attribute. This is its formal name, and is often descriptive.
- ldap-namesSpecifies alternative names for the attribute. These are similar to nicknames: they can be used anywhere the name can be used. Often these are shorter, and used in DNs. For example,cfor country.
- equalityIndicates the type of matching to apply to the attribute.
- orderingIndicates the ordering rules to apply to the attribute.
- substrIndicates the substring-matching rule to apply to the attribute.
- syntaxIndicates the type of data that may be stored in the attribute.
- single-valued | multi-valuedIndicates whether the attribute has multiple values (for example, lines of an address), or is limited to a single value (for example, salary).
- no-user-modificationIndicates whether the user can modify the value of the attribute
- descriptionA description of the attribute.
Example:
set attribute
Commandset attribute (2.5.4):10 = { name = commonName ldap-names = cn syntax = caseIgnoreString ;