TechnologiesSecurity, Privacy & Authentication

OpenDirectory

iOSmacOStvOSwatchOSvisionOS

OpenDirectory queries and manages directory services on macOS, letting you look up and modify users, groups, and other records used for authentication and identity. You begin with an ODSession and open an ODNode that represents a directory domain, then run an ODQuery to retrieve ODRecord objects or read and update their attributes. Configuration types such as ODConfiguration, ODMappings, ODAttributeMap, and ODModuleEntry describe how a node maps and resolves directory data, while ODQueryDelegate delivers query results and ODFrameworkErrors reports failures.

Sessions and Nodes 4

Establish a connection to directory services and open the node that represents a directory domain.

  • Cl
    ODSession
    @class ODSession
  • Cl
    ODNode
    @class ODNode
  • Cl
    ODSessionRef
    @typedef ODSessionRef
  • Cl
    ODNodeRef
    @typedef ODNodeRef

Querying Records 3

Search a node for matching records and receive results as they arrive.

  • Cl
    ODQuery
    @class ODQuery
  • Pr
    ODQueryDelegate
    @protocol ODQueryDelegate
  • Cl
    ODQueryRef
    @typedef ODQueryRef

Records and Attributes 2

Read and modify the user, group, and other directory records and their attributes.

  • Cl
    ODRecord
    @class ODRecord
  • Cl
    ODRecordRef
    @typedef ODRecordRef

Directory Configuration 5

Describe how a node maps and resolves directory data through configuration and attribute mappings.

  • Cl
    ODConfigurationmacOS 10.9+
    An object that describes how a directory node maps and resolves the records it serves.
  • Cl
    ODMappingsmacOS 10.9+
    An object that groups the record and attribute mappings used to resolve a node's directory data.
  • Cl
    ODAttributeMapmacOS 10.9+
    An object that describes how a directory attribute maps to and resolves from a node's underlying data.
  • Cl
    ODRecordMapmacOS 10.9+
    An object that describes how a record type maps to and resolves from a node's underlying data.
  • Cl
    ODModuleEntrymacOS 10.9+
    An object that describes a directory module participating in a node's configuration.

Authentication Context 2

Maintain state across multi-step authentication and credential operations.

  • Cl
    ODContext
    An object that maintains state across a multi-step authentication or credential operation.
  • Cl
    ODContextRef
    @typedef ODContextRef

Errors 1

Identify failures reported by Open Directory operations.

  • St
    ODFrameworkErrors
    @enum ODFrameworkErrors

Type Aliases 15

  • Ty
    ODQueryCallback
    @typedef ODQueryCallback
  • Ty
    ODNodeType
  • Ty
    ODMatchType
  • Ty
    ODRecordType
  • Ty
    ODAttributeType
  • Ty
    ODAuthenticationType
  • Ty
    ODPolicyType
  • Ty
    ODErrorUserInfoKeyType
  • Ty
    ODOptionKeyType
  • Ty
    _ODRecordType
  • Ty
    _ODAttributeType
  • Ty
    _ODAuthenticationType
  • Ty
    ODPolicyKeyType
  • Ty
    ODPolicyCategoryType
  • Ty
    ODPolicyAttributeType
← Security, Privacy & Authentication