The following examples show how a selection of XDS objects are displayed by the logging facility.
The following filter selects entries that do not have the value secret for the DS_A_USER_PASSWORD attribute. The DS_FILTER_TYPE has the value DS_NOT. It contains a single DS_C_FILTER_ITEM attribute. DS_C_FILTER_ITEM tests for equality against the DS_A_USER_PASSWORD attribute.
my_filter = {
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_FILTER },
{ DS_FILTER_ITEMS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_FILTER_ITEM },
{ DS_FILTER_ITEM_TYPE, OM_S_ENUMERATION, 0 },
{ DS_ATTRIBUTE_TYPE, OM_S_OBJECT_ID_STRING, DS_A_USER_PASSWORD },
{ DS_ATTRIBUTE_VALUES, OM_S_OCTET_STRING, "secret" },
},
},
{ DS_FILTER_TYPE, OM_S_ENUMERATION, 3 },
}; /* my_filter */
The following example shows logging output if the interface logger encounters a NULL pointer. The NULL pointer is flagged as follows:
my_session = {
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_SESSION },
{ DS_DSA_NAME, OM_S_OBJECT, - WARNING: NULL pointer encountered - },
}; /* my_session */
The following example shows logging output if the interface logger encounters a private object. The private object is displayed as follows:
bound_session = {
{ OM_PRIVATE_OBJECT, OM_S_OBJECT_ID_STRING, DS_C_SESSION } ...
}; /* bound_session */
The following example shows how a 5-part DSA distinguished name is displayed (/C=de/O=sni/OU=ap/CN=dsa/CN=dsa-m1):
dsa_name = {
{ DS_DSA_NAME, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_DS_DN },
{ DS_RDNS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_DS_RDN },
{ DS_AVAS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_AVA },
{ DS_ATTRIBUTE_TYPE, OM_S_OBJECT_ID_STRING, DS_A_COUNTRY_NAME },
{ DS_ATTRIBUTE_VALUES, OM_S_PRINTABLE_STRING, "de" },
},
},
},
},
{ DS_RDNS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_DS_RDN },
{ DS_AVAS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_AVA },
{ DS_ATTRIBUTE_TYPE, OM_S_OBJECT_ID_STRING, DS_A_ORG_NAME },
{ DS_ATTRIBUTE_VALUES, OM_S_TELETEX_STRING, "sni" },
},
},
},
},
{ DS_RDNS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_DS_RDN },
{ DS_AVAS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_AVA },
{ DS_ATTRIBUTE_TYPE, OM_S_OBJECT_ID_STRING, DS_A_ORG_UNIT_NAME },
{ DS_ATTRIBUTE_VALUES, OM_S_TELETEX_STRING, "ap" },
},
},
},
},
{ DS_RDNS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_DS_RDN },
{ DS_AVAS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_AVA },
{ DS_ATTRIBUTE_TYPE, OM_S_OBJECT_ID_STRING, DS_A_COMMON_NAME },
{ DS_ATTRIBUTE_VALUES, OM_S_TELETEX_STRING, "dsa" },
},
},
},
},
{ DS_RDNS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_DS_RDN },
{ DS_AVAS, OM_S_OBJECT,
{
{ OM_CLASS, OM_S_OBJECT_ID_STRING, DS_C_AVA },
{ DS_ATTRIBUTE_TYPE, OM_S_OBJECT_ID_STRING, DS_A_COMMON_NAME },
{ DS_ATTRIBUTE_VALUES, OM_S_TELETEX_STRING, "dsa-m1" },
},
},
},
},
},
},
}; /* dsa_name */