Previous Topic: set attr-set Command—Define an Attribute Set

Next Topic: set auth-trap Command—Set the DSA to Raise an SNMP Trap When Authentication Fails

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.

For more information, see Manage 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 ] 
};
OID

Specifies the object ID for the attribute. An OID has one of the following forms:

OID_Suffix

(Optional) Further specifies the OID.

name = attribute-name

Specifies the name of the attribute. This is its formal name, and is often descriptive.

ldap-names

Specifies 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, c for country.

equality

Indicates the type of matching to apply to the attribute.

ordering

Indicates the ordering rules to apply to the attribute.

substr

Indicates the substring-matching rule to apply to the attribute.

syntax

Indicates the type of data that may be stored in the attribute.

single-valued | multi-valued

Indicates whether the attribute has multiple values (for example, lines of an address), or is limited to a single value (for example, salary).

no-user-modification

Indicates whether the user can modify the value of the attribute

description

A description of the attribute.

Example: set attribute Command

set attribute (2.5.4):10 = {
name = commonName
ldap-names = cn
syntax = caseIgnoreString ;

More information:

Set Up Schemas