<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.6.0 - 10.7.0"
  ],
  "documentType" : "symbol",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/ODRecordSetNodeCredentialsUsingKerberosCache",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Open Directory"
    ],
    "preciseIdentifier" : "c:@F@ODRecordSetNodeCredentialsUsingKerberosCache"
  },
  "title" : "ODRecordSetNodeCredentialsUsingKerberosCache"
}
-->

# ODRecordSetNodeCredentialsUsingKerberosCache

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

```
extern bool ODRecordSetNodeCredentialsUsingKerberosCache(ODRecordRef record, CFStringRef cacheName, CFErrorRef*error);
```

## Parameters

`record`

The record.

`cacheName`

The name of the Kerberos cache to use. Can be `NULL`. By default, the currently active Kerberos cache is used.

`error`

An error reference for error details. Can be `NULL`.

## Return Value

`true` if the credentials are successfully set; otherwise, `false`.

## Discussion

If you want to set credentials for all references to a node, use [`ODNodeSetCredentialsUsingKerberosCache`](/documentation/OpenDirectory/ODNodeSetCredentialsUsingKerberosCache) instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)