<!--
{
  "documentType" : "article",
  "framework" : "OpenDirectory",
  "identifier" : "/documentation/OpenDirectory/opendirectory-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "OpenDirectory Constants"
}
-->

# OpenDirectory Constants

## Topics

### Constants

[`let ODFrameworkErrorDomain: String`](/documentation/OpenDirectory/ODFrameworkErrorDomain)

[`let ODSessionProxyAddress: String`](/documentation/OpenDirectory/ODSessionProxyAddress)

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

[`let ODSessionProxyPassword: String`](/documentation/OpenDirectory/ODSessionProxyPassword)

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

[`let ODSessionProxyPort: String`](/documentation/OpenDirectory/ODSessionProxyPort)

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

[`let ODSessionProxyUsername: String`](/documentation/OpenDirectory/ODSessionProxyUsername)

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

[`let ODTrustTypeAnonymous: String`](/documentation/OpenDirectory/ODTrustTypeAnonymous)

[`let ODTrustTypeJoined: String`](/documentation/OpenDirectory/ODTrustTypeJoined)

[`let ODTrustTypeUsingCredentials: String`](/documentation/OpenDirectory/ODTrustTypeUsingCredentials)

[`let kODAttributeTypeAltSecurityIdentities: String`](/documentation/OpenDirectory/kODAttributeTypeAltSecurityIdentities)

[`let kODAttributeTypeHardwareUUID: String`](/documentation/OpenDirectory/kODAttributeTypeHardwareUUID)

[`let kODAttributeTypeMetaAmbiguousName: String`](/documentation/OpenDirectory/kODAttributeTypeMetaAmbiguousName)

[`let kODAttributeTypeMetaAugmentedAttributes: String`](/documentation/OpenDirectory/kODAttributeTypeMetaAugmentedAttributes)

[`let kODAttributeTypeMetaRecordName: String`](/documentation/OpenDirectory/kODAttributeTypeMetaRecordName)

[`let kODAttributeTypeNodeOptions: String`](/documentation/OpenDirectory/kODAttributeTypeNodeOptions)

[`let kODAttributeTypeNodeSASLRealm: String`](/documentation/OpenDirectory/kODAttributeTypeNodeSASLRealm)

[`let kODAttributeTypeOperatingSystem: String`](/documentation/OpenDirectory/kODAttributeTypeOperatingSystem)

[`let kODAttributeTypeOperatingSystemVersion: String`](/documentation/OpenDirectory/kODAttributeTypeOperatingSystemVersion)

[`let kODAttributeTypeProfiles: String`](/documentation/OpenDirectory/kODAttributeTypeProfiles)

[`let kODAttributeTypeProfilesTimestamp: String`](/documentation/OpenDirectory/kODAttributeTypeProfilesTimestamp)

[`let kODAttributeTypeTrustInformation: String`](/documentation/OpenDirectory/kODAttributeTypeTrustInformation)

[`var kODErrorCredentialsAccountDisabled: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsAccountDisabled)

The account is disabled.

[`var kODErrorCredentialsAccountExpired: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsAccountExpired)

The account is expired.

[`var kODErrorCredentialsAccountInactive: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsAccountInactive)

The account is inactive.

[`var kODErrorCredentialsAccountNotFound: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsAccountNotFound)

The authentication server could not find the provided account.

[`kODErrorCredentialsContactMaster`](/documentation/OpenDirectory/ODFrameworkErrors/kODErrorCredentialsContactMaster)

The authentication server contacted is not the primary server, and the requested operation requires the primary server.

[`var kODErrorCredentialsInvalid: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsInvalid)

The provided credentials are invalid with the current node.

[`var kODErrorCredentialsInvalidComputer: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsInvalidComputer)

The account is not permitted to log into this computer.

[`var kODErrorCredentialsInvalidLogonHours: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsInvalidLogonHours)

The logon attempt was not within set logon hours.

[`var kODErrorCredentialsMethodNotSupported: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsMethodNotSupported)

The extended authentication method is not supported.

[`var kODErrorCredentialsNotAuthorized: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsNotAuthorized)

The operation, such as changing a password, is not permitted with current privileges.

[`var kODErrorCredentialsOperationFailed: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsOperationFailed)

The requested operation failed.

[`var kODErrorCredentialsParameterError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsParameterError)

An invalid parameter was provided.

[`var kODErrorCredentialsPasswordChangeRequired: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordChangeRequired)

The password must be changed.

[`var kODErrorCredentialsPasswordChangeTooSoon: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordChangeTooSoon)

The password was changed too recently to be changed again.

[`var kODErrorCredentialsPasswordExpired: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordExpired)

The password has expired and must be changed.

[`var kODErrorCredentialsPasswordNeedsDigit: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordNeedsDigit)

The provided password needs at least one digit.

[`var kODErrorCredentialsPasswordNeedsLetter: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordNeedsLetter)

The provided password needs at least one letter.

[`var kODErrorCredentialsPasswordQualityFailed: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordQualityFailed)

The provided password did not meet minimum quality requirements.

[`var kODErrorCredentialsPasswordTooLong: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordTooLong)

The provided password is too long.

[`var kODErrorCredentialsPasswordTooShort: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordTooShort)

The provided password is too short.

[`var kODErrorCredentialsPasswordUnrecoverable: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsPasswordUnrecoverable)

The password could not be recovered from the authentication database.

[`var kODErrorCredentialsServerCommunicationError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsServerCommunicationError)

The authentication server encountered a communication error.

[`var kODErrorCredentialsServerError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsServerError)

The authentication server encountered an error.

[`var kODErrorCredentialsServerNotFound: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsServerNotFound)

The authentication server could not be found.

[`var kODErrorCredentialsServerTimeout: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsServerTimeout)

The authentication server timed out.

[`var kODErrorCredentialsServerUnreachable: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsServerUnreachable)

The authentication server could not be reached.

[`var kODErrorDaemonError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorDaemonError)

The daemon has encountered an undefined error.

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

The error domain used for errors from the Open Directory framework.

[`var kODErrorNodeConnectionFailed: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorNodeConnectionFailed)

The node connection failed.

[`var kODErrorNodeDisabled: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorNodeDisabled)

[`var kODErrorNodeUnknownHost: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorNodeUnknownHost)

The host provided is invalid.

[`var kODErrorNodeUnknownName: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorNodeUnknownName)

The node name provided does not exist and cannot be opened.

[`var kODErrorNodeUnknownType: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorNodeUnknownType)

The node type provided is not a known value.

[`var kODErrorPluginError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorPluginError)

A plug-in has encountered an undefined error.

[`var kODErrorPluginOperationNotSupported: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorPluginOperationNotSupported)

The plug-in does not support the requested operation.

[`var kODErrorPluginOperationTimeout: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorPluginOperationTimeout)

[`var kODErrorPolicyOutOfRange: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorPolicyOutOfRange)

[`var kODErrorPolicyUnsupported: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorPolicyUnsupported)

[`var kODErrorQueryInvalidMatchType: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorQueryInvalidMatchType)

An invalid match type was provided in the query.

[`var kODErrorQuerySynchronize: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorQuerySynchronize)

A query synchronization has been initiated.

[`var kODErrorQueryTimeout: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorQueryTimeout)

The query timed out.

[`var kODErrorQueryUnsupportedMatchType: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorQueryUnsupportedMatchType)

An unsupported match type was provided in the query.

[`var kODErrorRecordAlreadyExists: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordAlreadyExists)

The record create failed because the record already exists.

[`var kODErrorRecordAttributeNotFound: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordAttributeNotFound)

The requested attribute could not be found in the record.

[`var kODErrorRecordAttributeUnknownType: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordAttributeUnknownType)

The attribute type is unknown.

[`var kODErrorRecordAttributeValueNotFound: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordAttributeValueNotFound)

The requested attribute value could not be found in the record.

[`var kODErrorRecordAttributeValueSchemaError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordAttributeValueSchemaError)

The attribute value does not meet schema requirements.

[`var kODErrorRecordInvalidType: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordInvalidType)

[`var kODErrorRecordNoLongerExists: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordNoLongerExists)

[`var kODErrorRecordParameterError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordParameterError)

An invalid parameter was provided.

[`var kODErrorRecordPermissionError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordPermissionError)

The changes were denied due to insufficient permissions.

[`var kODErrorRecordReadOnlyNode: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordReadOnlyNode)

The record cannot be modified.

[`var kODErrorRecordTypeDisabled: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorRecordTypeDisabled)

The record type is disabled by policy for a plug-in.

[`var kODErrorSessionDaemonNotRunning: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionDaemonNotRunning)

The daemon is not running.

[`var kODErrorSessionDaemonRefused: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionDaemonRefused)

The daemon refused the session.

[`var kODErrorSessionLocalOnlyDaemonInUse: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionLocalOnlyDaemonInUse)

A normal request was issued when the local-only daemon was in use.

[`var kODErrorSessionNormalDaemonInUse: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionNormalDaemonInUse)

A local-only request was issued when the normal daemon was in use.

[`var kODErrorSessionProxyCommunicationError: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionProxyCommunicationError)

There was a communication error with the remote daemon.

[`var kODErrorSessionProxyIPUnreachable: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionProxyIPUnreachable)

The proxy did not respond.

[`var kODErrorSessionProxyUnknownHost: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionProxyUnknownHost)

The proxy could not be resolved.

[`var kODErrorSessionProxyVersionMismatch: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSessionProxyVersionMismatch)

Versions mismatch between the remote daemon and the local framework.

[`var kODErrorSuccess: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorSuccess)

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

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

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

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

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

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

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

[`let kODPolicyAttributeCreationTime: String`](/documentation/OpenDirectory/kODPolicyAttributeCreationTime)

[`let kODPolicyAttributeCurrentDate: String`](/documentation/OpenDirectory/kODPolicyAttributeCurrentDate)

[`let kODPolicyAttributeCurrentDayOfWeek: String`](/documentation/OpenDirectory/kODPolicyAttributeCurrentDayOfWeek)

[`let kODPolicyAttributeCurrentTime: String`](/documentation/OpenDirectory/kODPolicyAttributeCurrentTime)

[`let kODPolicyAttributeCurrentTimeOfDay: String`](/documentation/OpenDirectory/kODPolicyAttributeCurrentTimeOfDay)

[`let kODPolicyAttributeDaysUntilExpiration: String`](/documentation/OpenDirectory/kODPolicyAttributeDaysUntilExpiration)

[`let kODPolicyAttributeEnableAtTimeOfDay: String`](/documentation/OpenDirectory/kODPolicyAttributeEnableAtTimeOfDay)

[`let kODPolicyAttributeEnableOnDate: String`](/documentation/OpenDirectory/kODPolicyAttributeEnableOnDate)

[`let kODPolicyAttributeEnableOnDayOfWeek: String`](/documentation/OpenDirectory/kODPolicyAttributeEnableOnDayOfWeek)

[`let kODPolicyAttributeExpiresAtTimeOfDay: String`](/documentation/OpenDirectory/kODPolicyAttributeExpiresAtTimeOfDay)

[`let kODPolicyAttributeExpiresEveryNDays: String`](/documentation/OpenDirectory/kODPolicyAttributeExpiresEveryNDays)

[`let kODPolicyAttributeExpiresOnDate: String`](/documentation/OpenDirectory/kODPolicyAttributeExpiresOnDate)

[`let kODPolicyAttributeExpiresOnDayOfWeek: String`](/documentation/OpenDirectory/kODPolicyAttributeExpiresOnDayOfWeek)

[`let kODPolicyAttributeFailedAuthentications: String`](/documentation/OpenDirectory/kODPolicyAttributeFailedAuthentications)

[`let kODPolicyAttributeLastAuthenticationTime: String`](/documentation/OpenDirectory/kODPolicyAttributeLastAuthenticationTime)

[`let kODPolicyAttributeLastFailedAuthenticationTime: String`](/documentation/OpenDirectory/kODPolicyAttributeLastFailedAuthenticationTime)

[`let kODPolicyAttributeLastPasswordChangeTime: String`](/documentation/OpenDirectory/kODPolicyAttributeLastPasswordChangeTime)

[`let kODPolicyAttributeMaximumFailedAuthentications: String`](/documentation/OpenDirectory/kODPolicyAttributeMaximumFailedAuthentications)

[`let kODPolicyAttributeNewPasswordRequiredTime: String`](/documentation/OpenDirectory/kODPolicyAttributeNewPasswordRequiredTime)

[`let kODPolicyAttributePassword: String`](/documentation/OpenDirectory/kODPolicyAttributePassword)

[`let kODPolicyAttributePasswordHashes: String`](/documentation/OpenDirectory/kODPolicyAttributePasswordHashes)

[`let kODPolicyAttributePasswordHistory: String`](/documentation/OpenDirectory/kODPolicyAttributePasswordHistory)

[`let kODPolicyAttributePasswordHistoryDepth: String`](/documentation/OpenDirectory/kODPolicyAttributePasswordHistoryDepth)

[`let kODPolicyAttributeRecordName: String`](/documentation/OpenDirectory/kODPolicyAttributeRecordName)

[`let kODPolicyAttributeRecordType: String`](/documentation/OpenDirectory/kODPolicyAttributeRecordType)

[`let kODPolicyCategoryAuthentication: String`](/documentation/OpenDirectory/kODPolicyCategoryAuthentication)

[`let kODPolicyCategoryPasswordChange: String`](/documentation/OpenDirectory/kODPolicyCategoryPasswordChange)

[`let kODPolicyCategoryPasswordContent: String`](/documentation/OpenDirectory/kODPolicyCategoryPasswordContent)

[`let kODPolicyKeyContent: String`](/documentation/OpenDirectory/kODPolicyKeyContent)

[`let kODPolicyKeyContentDescription: String`](/documentation/OpenDirectory/kODPolicyKeyContentDescription)

[`let kODPolicyKeyEvaluationDetails: String`](/documentation/OpenDirectory/kODPolicyKeyEvaluationDetails)

[`let kODPolicyKeyIdentifier: String`](/documentation/OpenDirectory/kODPolicyKeyIdentifier)

[`let kODPolicyKeyParameters: String`](/documentation/OpenDirectory/kODPolicyKeyParameters)

[`let kODPolicyKeyPolicySatisfied: String`](/documentation/OpenDirectory/kODPolicyKeyPolicySatisfied)

[`let kODPolicyTypeAccountExpiresOnDate: String`](/documentation/OpenDirectory/kODPolicyTypeAccountExpiresOnDate)

[`let kODPolicyTypeAccountMaximumFailedLogins: String`](/documentation/OpenDirectory/kODPolicyTypeAccountMaximumFailedLogins)

[`let kODPolicyTypeAccountMaximumMinutesOfNonUse: String`](/documentation/OpenDirectory/kODPolicyTypeAccountMaximumMinutesOfNonUse)

[`let kODPolicyTypeAccountMaximumMinutesUntilDisabled: String`](/documentation/OpenDirectory/kODPolicyTypeAccountMaximumMinutesUntilDisabled)

[`let kODPolicyTypeAccountMinutesUntilFailedLoginReset: String`](/documentation/OpenDirectory/kODPolicyTypeAccountMinutesUntilFailedLoginReset)

[`let kODPolicyTypePasswordCannotBeAccountName: String`](/documentation/OpenDirectory/kODPolicyTypePasswordCannotBeAccountName)

[`let kODPolicyTypePasswordChangeRequired: String`](/documentation/OpenDirectory/kODPolicyTypePasswordChangeRequired)

[`let kODPolicyTypePasswordHistory: String`](/documentation/OpenDirectory/kODPolicyTypePasswordHistory)

[`let kODPolicyTypePasswordMaximumAgeInMinutes: String`](/documentation/OpenDirectory/kODPolicyTypePasswordMaximumAgeInMinutes)

[`let kODPolicyTypePasswordMaximumNumberOfCharacters: String`](/documentation/OpenDirectory/kODPolicyTypePasswordMaximumNumberOfCharacters)

[`let kODPolicyTypePasswordMinimumNumberOfCharacters: String`](/documentation/OpenDirectory/kODPolicyTypePasswordMinimumNumberOfCharacters)

[`let kODPolicyTypePasswordRequiresAlpha: String`](/documentation/OpenDirectory/kODPolicyTypePasswordRequiresAlpha)

[`let kODPolicyTypePasswordRequiresMixedCase: String`](/documentation/OpenDirectory/kODPolicyTypePasswordRequiresMixedCase)

[`let kODPolicyTypePasswordRequiresNumeric: String`](/documentation/OpenDirectory/kODPolicyTypePasswordRequiresNumeric)

[`let kODPolicyTypePasswordRequiresSymbol: String`](/documentation/OpenDirectory/kODPolicyTypePasswordRequiresSymbol)

[`let kODPolicyTypePasswordSelfModification: String`](/documentation/OpenDirectory/kODPolicyTypePasswordSelfModification)

[`let kODRecordTypeQueryInformation: String`](/documentation/OpenDirectory/kODRecordTypeQueryInformation)

[`let kODAuthenticationTypeClearTextReadOnly: String`](/documentation/OpenDirectory/kODAuthenticationTypeClearTextReadOnly)

[`let kODAuthenticationTypeMPPEPrimaryKeys: String`](/documentation/OpenDirectory/kODAuthenticationTypeMPPEPrimaryKeys)

[`let kODBackOffSeconds: String`](/documentation/OpenDirectory/kODBackOffSeconds)

[`var kODErrorCredentialsAccountLocked: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsAccountLocked)

[`var kODErrorCredentialsAccountTemporarilyLocked: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsAccountTemporarilyLocked)

[`var kODErrorCredentialsContactPrimary: ODFrameworkErrors`](/documentation/OpenDirectory/kODErrorCredentialsContactPrimary)



---

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)