Function

ODRecordSetNodeCredentialsExtended

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

Declaration

bool ODRecordSetNodeCredentialsExtended(ODRecordRef record, ODRecordType recordType, ODAuthenticationType authType, CFArrayRef authItems, CFArrayRef *outAuthItems, ODContextRef *outContext, CFErrorRef *error);

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

ODRecordAddMember

Adds a record as a member of a group record.

ODRecordAddValue

Adds a value to an attribute of a record.

ODRecordChangePassword

Changes the password of a record.

ODRecordContainsMember

Returns whether a group record contains a given record.

ODRecordCopyDetails

Returns the values of a record’s attributes.

ODRecordCopyPasswordPolicy

Returns the password policies of a record.

Deprecated
ODRecordCopyValues

Returns the value of a single attribute of a record.

ODRecordDelete

Deletes a record from a node and invalidates the record.

ODRecordGetRecordName

Returns the official name of a record.

ODRecordGetRecordType

Returns the type of a record.

ODRecordGetTypeID

Returns the type ID for a record.

ODRecordRemoveMember

Removes a record as a member from a specified group record.

ODRecordRemoveValue

Removes a value from a record’s attribute.

ODRecordSetNodeCredentials

Sets node authentication credentials for a given record.

ODRecordSetNodeCredentialsUsingKerberosCache

Sets credentials for interacting with a record’s node with the Kerberos cache.

Deprecated
ODRecordSetValue

Sets one or more attribute values of a record.

ODRecordSynchronize

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

ODRecordVerifyPassword

Verifies a given password for a record.

ODRecordVerifyPasswordExtended

Verifies a given password for a record given a specified authentication method.