Instance Method

setNodeCredentialsWithRecordType(_:authenticationType:authenticationItems:continueItems:context:)

Sets the credentials for interaction with the record’s node using other types of authentication available to Open Directory.

Declaration

func setNodeCredentialsWithRecordType(_ inRecordType: String!, authenticationType inType: String!, authenticationItems inItems: [Any]!, continueItems outItems: AutoreleasingUnsafeMutablePointer<NSArray?>!, context outContext: AutoreleasingUnsafeMutablePointer<AnyObject?>!) throws

Parameters

inRecordType

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

inType

The authentication type.

inItems

An array of NSString or NSData objects to be used in the authentication process.

outItems

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

outContext

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

outError

An error reference for error details. Can be nil.

Return Value

true if no error occurs; otherwise, false.

Discussion

If this function fails, the previous credentials for the node are used.

See Also

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.