Instance Method

setCredentialsWithRecordType:recordName:password:error:

Sets credentials for interacting with the node.

Declaration

- (BOOL)setCredentialsWithRecordType:(ODRecordType)inRecordType recordName:(NSString *)inRecordName password:(NSString *)inPassword error:(NSError **)outError;

Parameters

inRecordType

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

inRecordName

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 nil.

Return Value

YES if the credentials are successfully set; otherwise, NO.

Discussion

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

See Also

Setting Node Credentials

setCredentialsWithRecordType:authenticationType:authenticationItems:continueItems:context:error:

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

setCredentialsUsingKerberosCache:error:

Sets the credentials for interaction with the node using a Kerberos cache.