Function

ODRecordChangePassword(_:_:_:_:)

Changes the password of a record.

Declaration

func ODRecordChangePassword(_ record: ODRecordRef!, _ oldPassword: CFString!, _ newPassword: CFString!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

inRecord

The record.

inOldPassword

The record’s old password. Pass NULL if the record has no old password.

inNewPassword

The record’s new password.

outError

An error reference for error details. Can be NULL.

Return Value

true if the password is successfully changed; false otherwise.

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.