Function

ODRecordSetNodeCredentials(_:_:_:_:)

Sets node authentication credentials for a given record.

Declaration

func ODRecordSetNodeCredentials(_ record: ODRecordRef!, _ username: CFString!, _ password: CFString!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

inRecord

The record.

inUsername

The username to use to authenticate with the node.

inPassword

The password to use to authenticate with the node.

outError

An error reference for error details. Can be NULL.

Return Value

true if the credentials are successfully set; otherwise, false.

Discussion

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

If this function fails, the previous credentials are used.

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.