Function

ODRecordSetNodeCredentialsExtended(_:_:_:_:_:_:_:)

Sets node authentication credentials for a record using a specified authentication method.

Declaration

func ODRecordSetNodeCredentialsExtended(_ record: ODRecordRef!, _ recordType: String!, _ authType: String!, _ authItems: CFArray!, _ outAuthItems: UnsafeMutablePointer<Unmanaged<CFArray>?>!, _ outContext: UnsafeMutablePointer<Unmanaged<ODContext>?>!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

inRecord

The record.

inRecordType

The record type that uses the credentials. Can be NULL. The default value is kODRecordTypeUsers.

inAuthType

The type of authentication to use.

inAuthItems

An array of CFString or CFData objects to be used in the authentication process.

outAuthItems

An array of CFData objects returned from the authentication process, if any are returned; NULL otherwise.

outContext

The proper context if the authentication attempt requires a context; NULL otherwise. If not NULL, then more calls must be made with the Context to continue the authentication.

outError

An error reference for error details. Can be NULL.

Return Value

true if no error occurs; otherwise, false.

Discussion

If you want to set credentials for all references to a node, use ODNodeSetCredentialsExtended(_:_:_:_:_:_:_:) instead.

See Also

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.