<!--
{
  "documentType" : "article",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/session-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Session Keys"
}
-->

# Session Keys

Keys used when specifying session information.

## Topics

### Constants

[`var kODSessionDefault: Unmanaged<ODSessionRef>!`](/documentation/OpenDirectory/kODSessionDefault)

The default session. Used if there is no need to create a specific reference.

[`let kODSessionProxyAddress: CFString!`](/documentation/OpenDirectory/kODSessionProxyAddress)

The address to connect to via proxy. The value is of type `CFString`.

[`let kODSessionProxyPort: CFString!`](/documentation/OpenDirectory/kODSessionProxyPort)

The port to connect to via proxy. The value is of type `CFNumber`.

[`let kODSessionProxyUsername: CFString!`](/documentation/OpenDirectory/kODSessionProxyUsername)

The username to connect with via proxy. The value is of type `CFString`.

[`let kODSessionProxyPassword: CFString!`](/documentation/OpenDirectory/kODSessionProxyPassword)

The password to connect with via proxy. The value is of type `CFString`.



---

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)