53.10. Information about Attributes

The parameters listed below provide the following information about attributes:

53.10.1. Attribute Names

The parameters listed below are used to check for commonly-used attribute names. These are not pblock parameters but macros that define strings; for example, SLAPI_ATTR_OBJECTCLASS is objectclass.
Parameter ID Data Type Description
SLAPI_ATTR_NSCP_ENTRYDN int The nscpEntryDN attribute value.
SLAPI_ATTR_OBJECTCLASS int The objectclass attribute value.
SLAPI_ATTR_UNIQUEID int The nsuniqueid (unique ID) attribute value.
SLAPI_ATTR_VALUE_PARENT_UNIQUEID int The nsParentUniqueID attribute value.
SLAPI_ATTR_VALUE_TOMBSTONE int The nsTombstone attribute value.

53.10.2. Attribute Flags

The parameters listed below are used by the slapi_attr_get_flags() function to get the flags associated with the specified attribute. These flags can identify an attribute as a single- valued attribute, an operational attribute, or as a read-only attribute.
Parameter ID Description
SLAPI_ATTR_FLAG_COLLECTIVE Flag that indicates the optional collective marker has been set. This is not supported.
SLAPI_ATTR_FLAG_NOUSERMOD Flag that indicates this attribute cannot be modified by a user over LDAP.
SLAPI_ATTR_FLAG_OBSOLETE Flag that indicates this attribute is obsolete.
SLAPI_ATTR_FLAG_OPATTR Flag that determines if the attribute is an operational attribute.
SLAPI_ATTR_FLAG_READONLY Flag that determines if the attribute is read-only.
SLAPI_ATTR_FLAG_SINGLE Flag that determines if the attribute is single-valued.
SLAPI_ATTR_FLAG_STD_ATTR Flag that indicates that this is a standard, non-user-defined attribute that is not listed in the user defined schema file, which is typically the schema file named 99user.ldif. Standard attribute types can't be deleted by modifying the subschema subentry (cn=schema) over LDAP.

53.10.3. Attribute Comparisons

The parameters listed below are used with the slapi_attr_type_cmp() plug-in function to compare two components of an attribute.
Parameter ID Description
SLAPI_TYPE_CMP_BASE Ignores the options on both names and compares the base names only.
SLAPI_TYPE_CMP_EXACT Compares the base name plus options, as specified.
SLAPI_TYPE_CMP_SUBTYPE Ignores the options on the second name that are not in the first name.