Directory API type definitions and forward declarations of private types. More...
#include <isode/ds/dsapi/dsapi_const.h>Go to the source code of this file.
Typedefs | |
| typedef struct DS_Session | DS_Session |
| typedef struct DS_BindParams | DS_BindParams |
| typedef struct DS_Identity | DS_Identity |
| typedef struct DS_SASLProps | DS_SASLProps |
| typedef struct DS_AttrVal | DS_AttrVal |
| typedef struct DS_Attr | DS_Attr |
| typedef struct DS_Entry | DS_Entry |
| typedef struct DS_Referral | DS_Referral |
| typedef struct DS_ReferralAddress | DS_ReferralAddress |
| typedef struct DS_DN | DS_DN |
| typedef struct DS_Result | DS_Result |
| typedef struct DS_Error | DS_Error |
| typedef struct DS_Indication | DS_Indication |
| typedef struct DS_Attr | DS_AttrList |
| typedef struct DS_AttrVal | DS_AttrValList |
| typedef struct DS_DN | DS_DNList |
| typedef struct DS_Entry | DS_EntryList |
| typedef struct DS_Referral | DS_ReferralList |
| typedef struct DS_CommonArgs | DS_CommonArgs |
| typedef struct IF_Dn | DS_InternalDN |
| typedef struct DS_LDIF | DS_LDIF |
| typedef struct DS_RanLDIF | DS_RanLDIF |
| typedef struct DS_DNIndex | DS_DNIndex |
| typedef DSHookAction | DS_ErrorHook(void *object, char *operation, DS_Status status, void *user) |
| Error callback hook function type. | |
Enumerations | |
| enum | DSSearchScope { DSScopeBaseObject = 0 , DSScopeOneLevel = 1 , DSScopeSubtree = 2 } |
| enum | DSLimitProblem { DSLimitNoProblem = 0 , DSLimitTimeExceeded = 1 , DSLimitSizeExceeded = 2 , DSLimitAdminLimitExceeded = 3 } |
| enum | DSModType { DSModAdd = 0 , DSModDelete = 1 , DSModReplace = 2 } |
| enum | DSEntryType { DSEntryNormal = 0 , DSEntryModify = 1 , DSEntryAdd = 2 , DSEntryDelete = 3 , DSEntryRename = 4 } |
| enum | DSSessionState { DSNotYetConnected = 0 , DSConnectionLost = 1 , DSUnbound = 2 , DSVerificationFailed = 3 , DSConnectionBound = 0x100 , DSConnectionAnonymous = (DSConnectionBound + 1) , DSConnectionSimple = (DSConnectionBound + 2) , DSConnectionStrong = (DSConnectionBound + 3) , DSConnectionSasl = (DSConnectionBound + 4) } |
| enum | DSHookAction { DSActionContinue = 0 , DSActionAbort = 1 } |
Detailed Description
Directory API type definitions and forward declarations of private types.
Definition in file dsapi_types.h.
Typedef Documentation
◆ DS_Session
| typedef struct DS_Session DS_Session |
This represents a connection to a directory.
Definition at line 44 of file dsapi_types.h.
◆ DS_BindParams
| typedef struct DS_BindParams DS_BindParams |
◆ DS_Identity
| typedef struct DS_Identity DS_Identity |
◆ DS_SASLProps
| typedef struct DS_SASLProps DS_SASLProps |
This represents a SASL Props.
Definition at line 63 of file dsapi_types.h.
◆ DS_AttrVal
| typedef struct DS_AttrVal DS_AttrVal |
This represents a value of an attribute.
See Attribute Values
Definition at line 69 of file dsapi_types.h.
◆ DS_Attr
This represents an attribute of an entry.
See Entry Attributes
Definition at line 75 of file dsapi_types.h.
◆ DS_Entry
This represents a directory entry.
Definition at line 81 of file dsapi_types.h.
◆ DS_Referral
| typedef struct DS_Referral DS_Referral |
This represents information about a referral returned from the directory.
- Since
- DSAPI_VERSION 2016
Definition at line 89 of file dsapi_types.h.
◆ DS_ReferralAddress
| typedef struct DS_ReferralAddress DS_ReferralAddress |
This represents information about a particular location where a referral may be followed.
- Since
- DSAPI_VERSION 2016
Definition at line 97 of file dsapi_types.h.
◆ DS_DN
This represents a single Distinguished Name.
Definition at line 103 of file dsapi_types.h.
◆ DS_Result
This represents an operation result returned by the directory.
See Directory operation error types
Definition at line 109 of file dsapi_types.h.
◆ DS_Error
This represents an operation error returned by the directory.
See Directory operation error types and Directory operation error values.
Definition at line 115 of file dsapi_types.h.
◆ DS_Indication
| typedef struct DS_Indication DS_Indication |
This represents the result (or error) returned by a directory operation.
See Handling Directory Operation Results
Definition at line 121 of file dsapi_types.h.
◆ DS_AttrList
| typedef struct DS_Attr DS_AttrList |
This represents a list of attributes
See Entry Attributes
Definition at line 127 of file dsapi_types.h.
◆ DS_AttrValList
| typedef struct DS_AttrVal DS_AttrValList |
This represents a list of values of an attribute
See Attribute Values
Definition at line 133 of file dsapi_types.h.
◆ DS_DNList
This represents a list of Distinguished Names.
Definition at line 139 of file dsapi_types.h.
◆ DS_EntryList
| typedef struct DS_Entry DS_EntryList |
This represents a list of entries
Definition at line 145 of file dsapi_types.h.
◆ DS_ReferralList
| typedef struct DS_Referral DS_ReferralList |
This represents a list of referrals
- Since
- DSAPI_VERSION 2016
Definition at line 152 of file dsapi_types.h.
◆ DS_CommonArgs
| typedef struct DS_CommonArgs DS_CommonArgs |
This represents a list of common arguments for directory operations.
See Common Arguments to Directory Operations
Definition at line 158 of file dsapi_types.h.
◆ DS_InternalDN
| typedef struct IF_Dn DS_InternalDN |
This is an internal representation of a Distinguished Name, which may be needed when interfacing to other code.
Definition at line 165 of file dsapi_types.h.
◆ DS_LDIF
This represents LDIF input and/or output streams.
See LDIF files
Definition at line 171 of file dsapi_types.h.
◆ DS_RanLDIF
| typedef struct DS_RanLDIF DS_RanLDIF |
Definition at line 174 of file dsapi_types.h.
◆ DS_DNIndex
| typedef struct DS_DNIndex DS_DNIndex |
Definition at line 175 of file dsapi_types.h.
◆ DS_ErrorHook
| typedef DSHookAction DS_ErrorHook(void *object, char *operation, DS_Status status, void *user) |
Error callback hook function type.
The exact values passed for 'object' and 'operation' will be documented in the function that accepts the callback function pointer.
- Parameters
-
object The object that the original API call was made on. operation A string name describing the operation attempted. status The status returned by the problem operation user The callback function's own user data pointer.
- Return values
-
DSActionContinue Continue the operation DSActionAbort Abort the operation
Definition at line 289 of file dsapi_types.h.
Enumeration Type Documentation
◆ DSSearchScope
| enum DSSearchScope |
Values of the 'scope' parameter of directory search operations.
| Enumerator | |
|---|---|
| DSScopeBaseObject | Search the base object only. |
| DSScopeOneLevel | Search one level below the base object. |
| DSScopeSubtree | Search the entire subtree below the base object. |
Definition at line 180 of file dsapi_types.h.
◆ DSLimitProblem
| enum DSLimitProblem |
Indicates if a search operation was limited for some reason.
| Enumerator | |
|---|---|
| DSLimitNoProblem | All results were received. |
| DSLimitTimeExceeded | A time limit was reached. |
| DSLimitSizeExceeded | Too many results. |
| DSLimitAdminLimitExceeded | Administrative limit reached. |
Definition at line 189 of file dsapi_types.h.
◆ DSModType
| enum DSModType |
Modification types for attributes in change-entries.
| Enumerator | |
|---|---|
| DSModAdd | Add modification. |
| DSModDelete | Delete modification. |
| DSModReplace | Replace modification. |
Definition at line 199 of file dsapi_types.h.
◆ DSEntryType
| enum DSEntryType |
Types for entries.
| Enumerator | |
|---|---|
| DSEntryNormal | Normal (plain) entry. |
| DSEntryModify | Modify entry. |
| DSEntryAdd | Add entry. |
| DSEntryDelete | Delete entry. |
| DSEntryRename | Rename (modify-DN) entry. |
Definition at line 208 of file dsapi_types.h.
◆ DSSessionState
| enum DSSessionState |
States that DS_Session might be in. Normally, a session will progress from DSNotYetConnected to one of theDSConnectionXXXX states, and then (when DS_UnbindSync() is called) to DSUnbound.
A session will take on the state DSConnectionLost status when DSAPI detects that the underlying connection has been dropped for some reason (e.g. the remote DSA has been shut down, or a network error has occurred). Note that the error state will only be detected the first time an operation is attempted following the disconnection.
When a session becomes DSConnectionLost, the operation which was in progress will fail and return a DS_E_CONNECTIONLOST status.
Operations on sessions which have values < DSConnectionBound (including DSConnectionLost) will fail with a DS_E_NOTBOUND status.
Use DS_GetSessionState to determine the current state of a session.
Definition at line 237 of file dsapi_types.h.
◆ DSHookAction
| enum DSHookAction |
Actions for hooks
| Enumerator | |
|---|---|
| DSActionContinue | Continue with the operation. |
| DSActionAbort | Abort the operation. |
Definition at line 270 of file dsapi_types.h.