11. XDS Class Definitions

Back to Table of Contents

When referring to classes and attributes in the Directory Service, the chapters in Parts 3 and 4 make a clear distinction between OM classes and directory classes, and between OM attributes and directory attributes. In both cases, the former is a construct of the closely associated Object Management interface, while the latter is a construct of the Directory Service to which XDS provides access. The terms object class and attribute indicate the directory constructs, while the phrases OM class and OM attribute indicate the Object Management constructs.

11.1. Introduction to OM Classes

Back to Table of Contents This chapter defines, in alphabetical order, the OM classes that constitute the Directory Service Package. This package incorporates the OM classes for the errors which may be returned at the XDS interface. The object identifier associated with this package is {iso(1) identified-organization(3) icd-ecma(0012) member-company(2) dec(1011) xopen(28) dsp(0)} with the following encoding:
\\x2B\\xC\\x2\\x87\\x73\\x1C\\x0
This object identifier is represented by the constant DS_SERVICE_PKG.

The Object Management notation is briefly described in the following text. See Chapters 17 through 19 for more information on Object Management.

Each OM class is described in a separate section, which identifies the OM attributes specific to that OM class. The OM classes and OM attributes for each OM class are listed in alphabetical order. The OM attributes that can be found in an instance of an OM class are those OM attributes specific to that OM class, as well as those inherited from each of its superclasses. The OM class-specific OM attributes are defined in a table. The table indicates the name of each OM attribute, the syntax of each of its values, any restrictions upon the length (in bits, octets (bytes), or characters) of each value, any restrictions upon the number of values, and the value, if any, om_create() supplies.

The constants that represent the OM classes and OM attributes in the C binding are defined in the xds.h(4xds) header file.

11.2. XDS Errors

Back to Table of Contents

Errors are reported to the application program by means of DS_status, which is a result of every function (it is the function result in the C language binding for most functions). A function that completes successfully returns the value DS_SUCCESS, whereas one that is not successful returns an error. The error is a private object containing details of the problem that occurred. The error constant DS_NO_WORKSPACE can be returned by all Directory Service functions, except ds_initialize(). DS_NO_WORKSPACE is returned if ds_initialize() is not invoked before calling any other Directory Service function.

Errors are classified into ten OM classes. The standards (see The Directory: Abstract Service Definition , ISO 9594-3, CCITT X.511) classify errors into eight different groups, as follows:

The Directory Service interface never returns an Abandoned error. The interface also defines three more kinds of errors: DS_C_LIBRARY_ERROR, DS_C_COMMUNICATIONS_ERROR, and DS_C_SYSTEM_ERROR. Each of these kinds of errors is represented by an OM class. These OM classes are detailed in subsequent sections of this chapter. All of them inherit the OM attribute DS_PROBLEM from their superclass DS_C_ERROR, which is described in this Chapter. The values DS_PROBLEM can take are listed in the relevent subsections of this Chapter. For a description of these errors please refer to the OSF DCE Problem Determination Guide. The error OM classes defined in this chapter are part of the Directory Service Package.

The ds_bind() operation returns a Security Error or a Service Error. All other operations can also return the same errors as ds_bind(). Such errors can arise in the course of following an automatic referral list.

DS_C_REFERRAL is not a real error, and it is not a subclass of DS_C_ERROR, although it is reported in the same way as a DS_status result. A DS_C_ATTRIBUTE_ERROR, also not a subclass of DS_C_ERROR, is special because it can report several problems at once. Each one is reported in DS_C_ATTRIBUTE_PROBLEM, which is a subclass of DS_C_ERROR.

11.3. OM Class Hierarchy

Back to Table of Contents This section shows the hierarchical organization of the OM classes defined in this chapter and, as a result, shows which OM classes inherit additional OM attributes from their superclasses. In the following list, subclassification is indicated by indentation, and the names of abstract classes are in italics. Thus, for example, the concrete class DS_C_PRESENTATION_ADDRESS is an immediate subclass of the abstract class DS_C_ADDRESS, which in turn is an immediate subclass of the abstract class OM_C_OBJECT. (OM_C_OBJECT is defined in Chapter 19 of this guide.)

OM_C_OBJECT

None of the classes in the preceding list are encodable using om_encode and om_decode. The application is not permitted to create or modify instances of some OM classes because these OM classes are only returned by the interface and never supplied to it. These OM classes are as follows:

DS_C_ACCESS POINT DS_C_ATTRIBUTE_ERROR DS_C_COMPARE_RESULT DS_C_CONTINUATION_REF All subclasses of DS_C_ERROR DS_C_LIST_INFO DS_C_LIST_INFO_ITEM DS_C_LIST_RESULT DS_C_OPERATION_PROGRESS DS_C_PARTIAL_OUTCOME_QUAL DS_C_READ_RESULT DS_C_REFERRAL DS_C_SEARCH_INFO DS_C_SEARCH_RESULT

11.4. DS_C_ABANDON_FAILED

Back to Table of Contents An instance of OM class DS_C_ABANDON_FAILED reports a problem encountered during an attempt to abandon an operation.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, and no additional OM attributes.

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the problem. Its value is one of the following:

A ds_abandon XDS call always returns a DS_E_TOO_LATE error for the DS_C_ABANDON_FAILED OM class. Refer to Chapter 10 for information on abandoning directory operations.

11.5. DS_C_ACCESS_POINT

Back to Table of Contents An instance of OM class DS_C_ACCESS_POINT identifies a particular point at which a DSA can be accessed.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-1.
Table 11-1: OM Attributes of DS_C_ACCESS_POINT
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ADDRESSObject(DS_C_ADDRESS--1--
DS_AE_TITLEObject(DS_C_NAME--1--

11.6. DS_C_ADDRESS

Back to Table of Contents The OM class DS_C_ADDRESS represents the address of a particular entity or service, such as a DSA.

It is an abstract class that has the OM attributes of its superclass, OM_C_OBJECT, and no other OM attributes.

An address is an unambiguous name, label, or number that identifies the location of the entity or service. All addresses are represented as instances of some subclass of this OM class.

The only subclass defined by the DCE XDS API is DS_C_PRESENTATION_ADDRESS, which is the presentation address of an OSI application entity used for OSI communications with this subclass.

11.7. DS_C_ATTRIBUTE

Back to Table of Contents An instance of OM class DS_C_ATTRIBUTE is an attribute of an object, and is thus a component of its directory entry.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-2.
Table 11-2: OM Attributes of DS_C_ATTRIBUTE
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ATTRIBUTE_TYPEString(OM_S_OBJECT_IDENTIFIER_STRING)--1--
DS_ATTRIBUTE_VALUESAny--0 or more--

Note: A directory attribute must always have at least one value, although it is acceptable for instances of this OM class not to have any values.

11.8. DS_C_ATTRIBUTE_ERROR

Back to Table of Contents An instance of OM class DS_C_ATTRIBUTE_ERROR "attribute" reports an attribute-related Directory Service error.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-3.

Table 11-3: OM Attributes of DS_C_ATTRIBUTE_ERROR
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_OBJECT_NAMEObject(DS_C_NAME)--1--
DS_PROBLEMSObject(DS_C_ATTRIBUTE_PROBLEM--1 or more--

11.9. DS_C_ATTRIBUTE_LIST

Back to Table of Contents An instance of OM class DS_C_ATTRIBUTE_LIST is a list of directory attributes.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attribute listed in Table 11-4.

DS_ATTRIBUTES
Table 11-4: OM Attributes of DS_C_ATTRIBUTE_LIST
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
Object(DS_C_ATTRIBUTE)--0 or more--

11.10. DS_C_ATTRIBUTE_PROBLEM

Back to Table of Contents An instance of OM class DS_C_ATTRIBUTE_PROBLEM documents one attribute-related problem encountered while performing an operation as requested on a particular occasion.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, in addition to the OM attributes listed in Table 11-5.

Table 11-5: OM Attributes of DS_C_ATTRIBUTE_PROBLEM
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ATTRIBUTE_TYPEString(OM_S_OBJECT_IDENTIFIER_STRING--1--
DS_ATTRIBUTE_VALUEAny--0 or 1--

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the problem. Its value is one of the following:

11.11. DS_C_AVA

Back to Table of Contents An instance of OM class DS_C_AVA (Attribute Value Assertion) is a proposition concerning the values of a directory entry.

An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C ATTRIBUTE, and no other OM attributes. An additional restriction on this OM class is that there must be exactly one value of the OM attribute DS_ATTRIBUTE_VALUES. The DS_ATTRIBUTE_TYPE remains single valued. The OM value syntax of DS_ATTRIBUTE_VALUES must conform to the rules outlined in Section 10.6.1.

11.12. DS_C_COMMON_RESULTS

Back to Table of Contents The OM class DS_C_COMMON_RESULTS comprises results that are returned by, and are common to, the directory interrogation operations.

It is an abstract OM class, which has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-6. DS_PERFORMER
Table 11-6: OM Attributes of DS_C_COMMON_RESULTS
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ALIAS_DEREFERENCEDOM_S_BOOLEAN--1--
Object(DS_C_NAME)--0 or 1--

11.13. DS_C_COMMUNICATIONS_ERROR

Back to Table of Contents An instance of OM class DS_C_COMMUNICATIONS_ERROR "communications" reports an error occurring in the other OSI services supporting the Directory Service.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, and no additional OM attributes.

Communications errors include those arising in remote operation, association control, presentation, session, and transport.

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the problem. Its value is DS_E_COMMUNICATIONS_PROBLEM.

11.14. DS_C_COMPARE_RESULT

Back to Table of Contents An instance of OM class DS_C_COMPARE_RESULT comprises the results of a successful call to ds_compare().

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_COMMON_RESULTS, in addition to the OM attributes listed in Table 11-7.
Table 11-7: OM Attributes of DS_C_COMPARE_RESULT
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_FROM_ENTRYOM_S_BOOLEAN--1--
DS_MATCHEDOM_S_BOOLEAN--1--
DS_OBJECT_NAMEObject(DS_C_NAME)--0 or 1--

11.15. DS_C_CONTEXT

Back to Table of Contents An instance of OM class DS_C_CONTEXT comprises per-operation arguments that are accepted by most of the interface functions.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-8.

Table 11-8: OM Attributes of DS_C_CONTEXT
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
Common Arguments
DS_EXTObject(DS_C_EXT)--0 or more--
DS_OPERATION_PROGRESSObject(DS_C_OPERATION_PROGRESS)--1DS_OPERATION_NOT_STARTED
DS_ALIASED_RDNSOM_S_INTEGER--0 or 10
Service Controls
DS_CHAINING_PROHIBOM_S_BOOLEAN--1OM_TRUE
DS_DONT_DEREFERENCE_ALIASESOM_S_BOOLEAN--1OM_FALSE
DS_DONT_USE_COPYOM_S_BOOLEAN--1OM_TRUE
DS_LOCAL_SCOPEOM_S_BOOLEAN--1OM_FALSE
DS_PREFER_CHAININGOM_S_BOOLEAN--1OM_FALSE
DS_PRIORITYEnum(DS_ Priority)--1DS_MEDIUM
DS_SCOPE_OF_REFERRALEnum(DS_Scope_of_Referral)--0 or 1--
DS_SIZE_LIMITOM_S_INTEGER--0 or 1--
DS_TIME_LIMITOM_S_INTEGER--0 or 1--
Local Controls
DS_ ASYNCHRONOUSOM_S_BOOLEAN--1OM_FALSE
DS_AUTOMATIC_ CONTINUATIONOM_S_BOOLEAN--1OM_TRUE

The context gathers several arguments passed to interface functions, which are presumed to be relatively static for a given directory user during a particular directory interaction. The context is passed as an argument to each function that interrogates or updates the directory. Although it is generally assumed that the context is changed infrequently, the value of each argument can be changed between every operation if required. The DS_ASYNCHRONOUS argument must not be changed. Each argument is represented by one of the OM attributes of the DS_C_CONTEXT OM class.

The context contains the common arguments defined in the standards (see The Directory: Abstract Service Definition, ISO 9594-3, CCITT X.511), except that all security information is omitted for reasons discussed in Section 10.9. These are made up of a number of service controls explained in the following text, possible extensions in the DS_EXT OM attribute, and operation progress and alias dereferencing information in the DS_OPERATION_PROGRESS OM attribute. It also contains a number of arguments that provide local control over the interface.

The OM attributes of the DS_C_CONTEXT OM class are as follows:

Note: Continuation references can still be returned to the application if, for example, the relevant DSA cannot be contacted.

Applications can assume that an object of OM class DS_C_CONTEXT, created with default values of all its OM attributes, works with all the interface functions. The DS_DEFAULT_CONTEXT constant can be used as an argument to interface functions instead of creating an OM object with default values.

11.16. DS_C_CONTINUATION_REF

Back to Table of Contents An instance of OM class DS_C_CONTINUATION_REF comprises the information that enables a partially completed directory request to be continued; for example, following a referral.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-9.
Table 11-9: OM Attributes of DS_C_CONTINUATION_REF
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ACCESS_POINTSObject(DS_C_ACCESS_POINT)--1 or more--
DS_ALIASED_RDNSOM_S_INTEGER--1--
DS_OPERATION_PROGRESSObject(DS_C_OPERATION_PROGRESS)--1--
DS_RDNS_RESOLVEDOM_S_INTEGER--0 or 1--
DS_TARGET_OBJECTObject(DS_C_NAME)--1--

11.17. DS_C_DS_DN

Back to Table of Contents An instance of OM class DS_C_DS_DN represents a name of a directory object.

An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_NAME, in addition to the OM attribute listed in Table 11-10.
Table 11-10: OM Attributes of DS_C_DS_DN
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_RDNSObject(DS_C_DS_RDN)--0 or more--

11.18. DS_C_DS_RDN

Back to Table of Contents An instance of OM class DS_C_DS_RDN is a relative distinguished name. An RDN uniquely identifies an immediate subordinate of an object whose entry is displayed in the DIT.

An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_RELATIVE_NAME, in addition to the OM attribute listed in Table 11-11.
Table 11-11: OM Attributes of DS_C_DS_RDN
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_AVASObject(DS_C_AVA)--1 or more--

11.19. DS_C_ENTRY_INFO

Back to Table of Contents An instance of OM class DS_C_ENTRY_INFO contains selected information from a single directory entry.

An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ATTRIBUTE_LIST, in addition to the OM attributes listed in Table 11-12.
Table 11-12: OM Attributes of DS_C_ENTRY_INFO
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_FROM_ENTRYOM_S_BOOLEAN--1--
DS_OBJECT_NAMEObject(DS_C_NAME)--1--

The OM attribute DS_ATTRIBUTES is inherited from the superclass DS_C_ATTRIBUTE_LIST. It contains the information extracted from the directory entry of the target object. The type of each attribute requested and located is indicated in the list as are its values, if types and values are requested.

The OM class-specific OM attributes are as follows:

11.20. DS_C_ENTRY_INFO_SELECTION

Back to Table of Contents An instance of OM class DS_C_ENTRY_INFO_SELECTION identifies the information to be extracted from a directory entry.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-13.

Table 11-13: OM Attributes of DS_C_ENTRY_INFO_SELECTION
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ALL_ATTRIBUTESOM_S_BOOLEAN--1OM_TRUE
DS_ATTRIBUTES_SELECTEDString(OM_S_OBJECT_IDENTIFIER_STRING)--0 or more--
DS_INFO_TYPEEnum(DS_Information_Type--1DS_TYPES_AND_VALUES

11.21. DS_C_ENTRY_MOD

Back to Table of Contents An instance of OM class DS_C_ENTRY_MOD describes a single modification to a specified attribute of a directory entry.

An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ATTRIBUTE, in addition to the OM attribute listed in Table 11-14.
Table 11-14: OM Attribute of DS_C_ENTRY_MOD
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_MOD_TYPEEnum(DS_Modification_Type)--1DS_ADD_ATTRIBUTE

The attribute type to be modified, and the associated values, are specified in the OM attributes DS_ATTRIBUTE_TYPE and DS_ATTRIBUTE_VALUES that are inherited from the DS_C_ATTRIBUTE superclass.

11.22. DS_C_ENTRY_MOD_LIST

Back to Table of Contents An instance of OM class DS_C_ENTRY_MOD_LIST "list" comprises a sequence of changes to be made to a directory entry.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attribute listed in Table 11-15.
Table 11-15: OM Attributes of DS_C_ENTRY_MOD_LIST
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_CHANGESObject(DS_C_ENTRY_MOD)--1 or more--

11.23. DS_C_ERROR

Back to Table of Contents The OM class DS_C_ERROR comprises the parameters common to all errors.

It is an abstract OM class with the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attribute listed in Table 11-16.

Table 11-16: OM Attributes of DS_C_ERROR
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_PROBLEMEnum(DS_Problem)--1--

Details of errors are returned in an instance of a subclass of this OM class. Each such subclass represents a particular kind of error, and is one of the following:

A number of possible values are defined for these subclasses. DCE XDS does not return other values for error conditions described in this chapter. Information on system errors can be found in Section 11.44. The following is a list of the error values. Each error OM class section defines the possible error values associated with that class. For a description of the errors please refer to the OSF DCE Problem Determination Guide.

11.24. DS_C_EXT

Back to Table of Contents An instance of OM class DS_C_EXT indicates that a standardized extension to the Directory Service is outlined in the standards. Such extensions will only be standardized in post-1988 versions of the standards. Therefore, this OM class is not used by the XDS API and is only included for X/Open conformance purposes.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-17.
Table 11-17: OM Attributes of DS_C_EXT
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_CRITOM_S_BOOLEAN--1OM_FALSE
DS_IDENTOM_S_INTEGER--1--
DS_ITEM_PARAMETERSAny--1--

11.25. DS_C_FILTER

Back to Table of Contents An instance of OM class DS_C_FILTER is used to select or reject an object on the basis of information in its directory entry. At any point in time, an attribute filter has a value relative to every object. The value is FALSE, TRUE, or undefined. The object is selected if, and only if, the filter's value is TRUE.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-18.
Table 11-18: OM Attributes of DS_C_FILTER
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_FILTER_ITEMSObject(DS_C_FILTER_ITEM)--0 or more--
DS_FILTERSObject(DS_C_FILTER)T}--0 or more--
DS_FILTER_TYPEEnum(DS_Filter_Type)--1DS_AND

A filter is a collection of less elaborate filters and elementary DS_FILTER_ITEMS, together with a Boolean operation. The filter value is undefined if, and only if, all the component DS_FILTERS and DS_FILTER_ITEMS are undefined. Otherwise, the filter has a Boolean value with respect to any directory entry, which can be determined by evaluating each of the nested components and combining their values using the Boolean operation. The components whose values are undefined are ignored.

11.26. DS_C_FILTER_ITEM

Back to Table of Contents An instance of OM class DS_C_FILTER_ITEM is a component of DS_C_FILTER. It is an assertion about the existence or values of a single attribute type in a directory entry.

An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ATTRIBUTE, in addition to the OM attributes listed in Table 11-19.
Table 11-19: OM Attributes of DS_C_FILTER_ITEM
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_FILTER_ITEM_TYPEEnum(DS_Filter_Item_Type)--1--
DS_FINAL_SUBSTRINGString(*)1 or more0 or 1--
DS_INITIAL_SUBSTRINGString(*)1 or more0 or 1--

Note: OM attributes DS_ATTRIBUTE_TYPE and DS_ATTRIBUTE_VALUES are inherited from the superclass DS_C_ATTRIBUTE.

The value of the filter item is undefined in the following cases:

Access control restrictions can also cause the value to be undefined.

11.27. DS_C_LIBRARY_ERROR

Back to Table of Contents An instance of OM class DS_C_LIBRARY_ERROR "library" reports an error detected by the interface function library.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, and no additional OM attributes.

Each function has several possible errors that can be detected by the library itself and that are returned directly by the subroutine. These errors occur when the library itself is incapable of performing an action, submitting a service request, or deciphering a response from the Directory Service.

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the particular library error that occurred. (In reference pages, the ERRORS section of each function description lists the errors that the respective function can return.) Its value is one of the following:

11.28. DS_C_LIST_INFO

Back to Table of Contents An instance of OM class DS_C_LIST_INFO is part of the results of ds_list().

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_COMMON_RESULTS, in addition to the OM attributes listed in Table 11-20.
Table 11-20: OM Attributes of DS_C_LIST_INFO
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_OBJECT_NAMEObject(DS_C_NAME)--0 or 1--
DS_PARTIAL_OUTCOME_QUALObject(DS_C_PARTIAL_OUTCOME_QUAL)--0 or 1--
DS_SUBORDINATESObject(DS_C_LIST_INFO_ITEM)--0 or more--

11.29. DS_C_LIST_INFO_ITEM

Back to Table of Contents An instance of OM class DS_C_LIST_INFO_ITEM comprises details returned by ds_list() of a single subordinate object.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-21.
Table 11-21: OM Attributes of DS_C_LIST_INFO_ITEM
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ALIAS_ENTRYOM_S_BOOLEAN--1--
DS_FROM_ENTRYOM_S_BOOLEAN--1--
DS_RDNObject(DS_C_RELATIVE_NAME)--1--

11.30. DS_C_LIST_RESULT

Back to Table of Contents An instance of OM class DS_C_LIST_RESULT comprises the results of a successful call to ds_list().

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-22.
Table 11-22: OM Attributes of DS_C_LIST_RESULT
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_LIST_INFOObject(DS_C_LIST_INFO)--0 or 1--
DS_UNCORRELATED_LIST_INFOObject(DS_C_LIST_RESULT)--0 or more--

Note: No instance contains values of both OM attributes.

11.31. DS_C_NAME

Back to Table of Contents The OM class DS_C_NAME represents a name of an object in the directory, or a part of such a name.

It is an abstract class, which has the attributes of its superclass, OM_C_OBJECT, and no other OM attributes.

A name uniquely distinguishes the object from all other objects whose entries are displayed in the DIT. However, an object can have more than one name; that is, a name need not be unique. A DN is unique; there are no other DNs that identify the same object. An RDN is part of a name and only distinguishes the object from others that are its siblings.

Most of the interface functions take a name parameter, the value of which must be an instance of one of the subclasses of this OM class. Thus, this OM class is useful for amalgamating all possible representations of names.

The DCE XDS implementation defines one subclass of this OM class and, thus, a single representation for names; that is, DS_C_DS_DN, which provides a representation for names, including DNs.

11.32. DS_C_NAME_ERROR

Back to Table of Contents An instance of OM class DS_C_NAME_ERROR "name" reports a name-related Directory Service error.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, in addition to the OM attribute listed in Table 11-23.

Table 11-23: OM Attributes of DS_C_NAME_ERROR
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_MATCHEDObject(DS_C_NAME)--1--

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the cause of the failure. Its value is one of the following:

11.33. DS_C_OPERATION_PROGRESS

Back to Table of Contents An instance of OM class DS_C_OPERATION_PROGRESS specifies the progress or processing state of a directory request.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-24.
Table 11-24: OM Attributes of DS_C_OPERATION_PROGRESS
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_NAME_RESOLUTION_PHASEEnum(DS_Name_Resolution_Phase)--1--
DS_NEXT_RDN_TO_BE_RESOLVEDOM_S_INTEGER--0 or 1--

The target name mentioned as follows is the name upon which processing of the directory request is currently focused.

The constant DS_OPERATION_NOT_STARTED can be used in the DS_C_CONTEXT of an operation instead of an instance of this OM class.

11.34. DS_C_PARTIAL_OUTCOME_QUAL

Back to Table of Contents An instance of OM class DS_C_PARTIAL_OUTCOME_QUAL explains to what extent the results of a call to ds_list() or ds_search() are incomplete and why.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-25.
Table 11-25: OM Attributes of DS_C_PARTIAL_OUTCOME_QUAL
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_LIMIT_PROBLEMEnum(DS_Limit_Problem)--1--
DS_UNAVAILABLE_CRIT_EXTOM_S_BOOLEAN--1--
DS_UNEXPLOREDObject(DS_C_CONTINUATION_REF)--0 or more--

11.35. DS_C_PRESENTATION_ADDRESS

Back to Table of Contents An instance of OM class DS_C_PRESENTATION_ADDRESS is a presentation address of an OSI application entity, which is used for OSI communications with this instance.

An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ADDRESS, in addition to the OM attributes listed in Table 11-26.
Table 11-26: OM Attributes of DS_C_PRESENTATION_ADDRESS
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_N_ADDRESSESString(OM_S_OCTET_STRING)--1 or more--
DS_P_SELECTORString(OM_S_OCTET_STRING--0 or 1--
DS_S_SELECTORString(OM_S_OCTET_STRING)--0 or 1--
DS_T_SELECTORString(OM_S_OCTET_STRING)--0 or 1--

11.36. DS_C_READ_RESULT

Back to Table of Contents An instance of OM class DS_C_READ_RESULT comprises the result of a successful call to ds_read(). An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_COMMON_RESULTS, in addition to the OM attribute listed in Table 11-27.
Table 11-27: OM Attribute of DS_C_READ_RESULT
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ENTRYObject(DS_C_ENTRY_INFO)--1--

11.37. DS_C_REFERRAL

Back to Table of Contents An instance of OM class DS_C_REFERRAL reports failure to perform an operation and redirects the requestor to one or more access points better equipped to perform the operation.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_CONTINUATION_REF, and no additional OM attributes.

The referral is a continuation reference by means of which the operation can progress.

11.38. DS_C_RELATIVE_NAME

Back to Table of Contents The OM class DS_C_RELATIVE_NAME represents the RDNs of objects in the directory. It is an abstract class, which has the attributes of its superclass, OM_C_OBJECT, and no other OM attributes.

An RDN is part of a name, and only distinguishes the object from others that are its siblings. This OM class is used to accumulate all possible representations of RDNs. An argument of interface functions that is an RDN, or an OM attribute value that is an RDN is an instance of one of the subclasses of this OM class.

The DCE XDS API defines one subclass of this OM class, and, thus, a single representation for RDNs; that is, DS_C_DS_RDN, which provides a representation for RDNs.

11.39. DS_C_SEARCH_INFO

Back to Table of Contents An instance of OM class DS_C_SEARCH_INFO is part of the result of ds_search().

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_COMMON_RESULTS, in addition to the OM attributes listed in Table 11-28.
Table 11-28: OM Attributes of DS_C_SEARCH_INFO
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_ENTRIESObject(DS_C_ENTRY_INFO)--0 or more--
DS_OBJECT_NAMEObject(DS_C_NAME)--0 or 1--
DS_PARTIAL_OUTCOME_QUALObject(DS_C_PARTIAL_OUTCOME_QUAL)--0 or 1--

11.40. DS_C_SEARCH_RESULT

Back to Table of Contents An instance of OM class DS_C_SEARCH_RESULT comprises the result of a successful call to ds_search().

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-29.
Table 11-29: OM Attributes of DS_C_SEARCH_RESULT
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_SEARCH_INFOObject(DS_C_SEARCH_INFO)--0 or 1--
DS_UNCORRELATED_SEARCH_INFOObject(DS_C_SEARCH_RESULT)--0 or more--

Note: No instance contains values of both OM attributes.

11.41. DS_C_SECURITY_ERROR

Back to Table of Contents An instance of OM class DS_C_SECURITY_ERROR "security" reports a security-related Directory Service error.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, and no additional OM attributes.

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the cause of this failure. Its value is one of the following:

11.42. DS_C_SERVICE_ERROR

Back to Table of Contents An instance of OM class DS_C_SERVICE_ERROR "service" reports a Directory Service error related to the provision of the service.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, and no additional OM attributes.

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the cause of the failure. Its value is one of the following:

11.43. DS_C_SESSION

Back to Table of Contents An instance of OM class DS_C_SESSION identifies a particular link from the application program to a DUA.

An instance of this OM class has the OM attributes of its superclass, OM_C_OBJECT, in addition to the OM attributes listed in Table 11-30.
Table 11-30: OM Attributes of DS_C_SESSION
OM AttributeValue SyntaxValue LengthValue NumberValue Initially
DS_DSA_ADDRESSObject(DS_C_ADDRESS)--0 or 1local1
DS_DSA_NAMEObject(DS_C_NAME)--0 or 1local1
DS_FILE_ DESCRIPTOROM_S_INTEGER--1See the text
DS_REQUESTORObject(DS_C_NAME)--0 or 1--

1
set to the address and name of the default DSA entry in the local cache. If this cache entry is not present, then these OM attributes are absent.

The DS_C_SESSION gathers all the information that describes a particular directory interaction. The parameters that will control such a session are set up in an instance of this OM class, which is then passed as an argument to ds_bind(). This sets the OM attributes that describe the actual characteristics of this session, and then starts the session. A session started in this way must pass as the first argument to each interface function. The result of modifying an initiated session is unspecified. Finally, ds_unbind() is used to terminate the session, after which the parameters can be modified and a new session started using the same instance, if required. Multiple concurrent sessions can run using multiple instances of this OM class.

The OM attributes of a session are as follows:

Applications can assume that an object of OM class DS_C_SESSION, created with default values of all its OM attributes, works with all the interface functions. Local administrators need to ensure that this is the case. Such a session can be created by passing the constant DS_DEFAULT_SESSION as an argument to ds_bind().

11.44. DS_C_SYSTEM_ERROR

Back to Table of Contents An instance of OM class DS_C_SYSTEM_ERROR "system" reports an error that occurred in the underlying operating system.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, and no additional OM attributes, although there can be additional implementation-defined OM attributes.

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the cause of the failure. Its value is the same as that of errno defined in the C language.

The standard names of system errors are defined in Volume 2 of the X/Open Portability Guide.

If such an error persists, a DS_C_LIBRARY_ERROR (DS_E_MISCELLANEOUS) is reported.

11.45. DS_C_UPDATE_ERROR

Back to Table of Contents An instance of OM class DS_C_UPDATE_ERROR "update" reports a Directory Service error peculiar to a modification operation.

An application is not permitted to create or modify instances of this OM class. An instance of this OM class has the OM attributes of its superclasses, OM_C_OBJECT and DS_C_ERROR, and no additional OM attributes.

The OM attribute DS_PROBLEM, which is inherited from the superclass DS_C_ERROR, identifies the cause of the failure. Its value is one of the following:


© 1990-1996, Transarc Corporation