OpenDirectory Functions

This document describes the functions, constants, and data types used to interact with Open Directory.

Topics

Working with the Open Directory Context

func ODContextGetTypeID() -> CFTypeID

Returns the type ID for the Open Directory context.

Working with Nodes

func ODNodeCopyUnreachableSubnodeNames(ODNodeRef!, UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFArray>!

Returns an array of the subnodes of a given node that are currently unreachable.

func ODNodeGetTypeID() -> CFTypeID

Returns the type ID for an Open Directory node.

Working with Records

func ODRecordGetTypeID() -> CFTypeID

Returns the type ID for a record.

func ODRecordSynchronize(ODRecordRef!, UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Synchronizes a record with the directory to get current data and commit changes.

Data Types

typealias ODAttributeType

An Open Directory attribute type.

typealias ODAuthenticationType

An Open Directory authentication type.

class ODContext

An Open Directory context type.

class ODNodeRef

An Open Directory node type.

class ODQueryRef

An Open Directory query type.

class ODRecordRef

An Open Directory record type.

class ODSessionRef

An Open Directory session type.

typealias ODMatchType

An Open Directory match type.

typealias ODNodeType

An Open Directory node type.

typealias ODQueryCallback

A callback function called as results from a scheduled query are returned.

typealias ODRecordType

An Open Directory record type.

Constants

Session Keys

Keys used when specifying session information.

Node Types

Open Directory node types.

Record Types

Types of Open Directory records.

General Attribute Types

Types of Open Directory attributes.

Configuration Attribute Types

Types of Open Directory attributes specifically for use with configure nodes.

Authentication Types

Types of authentication available in Open Directory.

Functions