ODNodeSetCredentials(_:_:_:_:_:)
Sets credentials for interacting with a node.
Declaration
func ODNodeSetCredentials(_ node: ODNodeRef!, _ recordType: String!, _ recordName: CFString!, _ password: CFString!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> BoolParameters
- node:
The node.
- recordType:
The record type that uses the credentials. Can be
NULL. The default value iskODRecordTypeUsers. - recordName:
The username to use to authenticate with the node.
- password:
The password to use to authenticate with the node.
- error:
An error reference for error details. Can be
NULL.
Return Value
true if the credentials are successfully set; otherwise, false.
Discussion
If this function fails, the previous credentials for the node are used.
This function sets credentials for all references to the node. If you only want to set credentials for a single record referencing the node, use ODRecordSetNodeCredentials(_:_:_:_:) instead.
See Also
Related Documentation
Working with Nodes
ODNodeCopyDetails(_:_:_:)ODNodeCopyRecord(_:_:_:_:_:)ODNodeCopySubnodeNames(_:_:)ODNodeCopySupportedAttributes(_:_:_:)ODNodeCopySupportedRecordTypes(_:_:)ODNodeCopyUnreachableSubnodeNames(_:_:)ODNodeCreateCopy(_:_:_:)ODNodeCreateRecord(_:_:_:_:_:)ODNodeCreateWithName(_:_:_:_:)ODNodeCreateWithNodeType(_:_:_:_:)ODNodeCustomCall(_:_:_:_:)ODNodeGetName(_:)ODNodeGetTypeID()ODNodeSetCredentialsExtended(_:_:_:_:_:_:_:)