The following code fragment shows an example definition for a DS_C_DS_DN object.
static OM_descriptor Entry_String_Object[] = {
OM_OID_DESC(OM_CLASS, DS_C_AVA),
OM_OID_DESC(DS_ATTRIBUTE_TYPE, DSX_TYPELESS_RDN),
{DS_ATTRIBUTE_VALUES, OM_S_PRINTABLE_STRING, \
OM_STRING("brazil")},
OM_NULL_DESCRIPTOR
};
static OM_descriptor Entry_Part_Object[] = {
OM_OID_DESC(OM_CLASS, DS_C_DS_RDN),
{DS_AVAS, OM_S_OBJECT, {0, Entry_String_Object}},
OM_NULL_DESCRIPTOR
};
static OM_descriptor Entry_Name_Object[] = {
OM_OID_DESC(OM_CLASS, DS_C_DS_DN),
{DS_RDNS, OM_S_OBJECT, {0, Entry_Part_Object}},
OM_NULL_DESCRIPTOR
};