Class

ODRecord

An ODRecord object serves as a Cocoa wrapper for an Open Directory record.

Declaration

class ODRecord : NSObject

Topics

Managing Authentication

func setNodeCredentials(String!, password: String!)

Sets credentials for the record’s node.

func verifyPassword(String!)

Verifies the password for interaction with the record.

Managing Group Records

func addMemberRecord(ODRecord!)

Adds a member record to this group record.

func isMemberRecord(ODRecord!)

Determines whether a given record is a member of this group record.

func removeMemberRecord(ODRecord!)

Removes a record as a member of this group record.

Managing Record Attributes

func addValue(Any!, toAttribute: String!)

Adds a value to an attribute of the record.

func recordDetails(forAttributes: [Any]!) -> [AnyHashable : Any]

Returns a dictionary of attributes with their respective values.

var recordName: String!

The official name of the record.

var recordType: String!

The record’s type.

func removeValues(forAttribute: String!)

Removes all values from an attribute of the record.

func removeValue(Any!, fromAttribute: String!)

Removes a value from an attribute of the record.

func setValue(Any!, forAttribute: String!)

Sets the values of an attribute of the record.

func synchronize()

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

func values(forAttribute: String!) -> [Any]

Returns the values of an attribute of the record.

Deleting a Record

func delete()

Deletes the record from its node and invalidates it.

Relationships

Inherits From

Conforms To