Framework | CFOpenDirectory |
Declared in | CFOpenDirectoryErrors.h |
Many functions in the Open Directory API return error codes to indicate the cause of a failure. This document explains these error codes.
This enumeration contains error codes returned by the Open Directory framework.
enum ODFrameworkErrors { /* ODSession error codes */ kODErrorSessionLocalOnlyDaemonInUse = 1000, kODErrorSessionNormalDaemonInUse = 1001, kODErrorSessionDaemonNotRunning = 1002, kODErrorSessionDaemonRefused = 1003, kODErrorSessionProxyCommunicationError = 1100, kODErrorSessionProxyVersionMismatch = 1101, kODErrorSessionProxyIPUnreachable = 1102, kODErrorSessionProxyUnknownHost = 1103, /* ODNode error codes */ kODErrorNodeUnknownName = 2000, kODErrorNodeUnknownType = 2001, kODErrorNodeConnectionFailed = 2100, /* ODNode miscellaneous error codes */ kODErrorNodeUnknownHost = 2200, /* ODQuery error codes */ kODErrorQuerySynchronize = 3000, kODErrorQueryInvalidMatchType = 3100, kODErrorQueryUnsupportedMatchType = 3101, kODErrorQueryTimeout = 3102, /* ODRecord error codes */ kODErrorRecordReadOnlyNode = 4000, kODErrorRecordPermissionError = 4001, kODErrorRecordParameterError = 4100, kODErrorRecordInvalidType = 4101, kODErrorRecordAlreadyExists = 4102, kODErrorRecordTypeDisabled = 4103, kODErrorRecordAttributeUnknownType = 4200, kODErrorRecordAttributeNotFound = 4201, kODErrorRecordAttributeValueSchemaError = 4202, kODErrorRecordAttributeValueNotFound = 4203, /* Credential specific error codes */ kODErrorCredentialsInvalid = 5000, kODErrorCredentialsMethodNotSupported = 5100, kODErrorCredentialsNotAuthorized = 5101, kODErrorCredentialsParameterError = 5102, kODErrorCredentialsOperationFailed = 5103, kODErrorCredentialsServerUnreachable = 5200, kODErrorCredentialsServerNotFound = 5201, kODErrorCredentialsServerError = 5202, kODErrorCredentialsServerTimeout = 5203, kODErrorCredentialsContactMaster = 5204, kODErrorCredentialsServerCommunicationError = 5205, kODErrorCredentialsAccountNotFound = 5300, kODErrorCredentialsAccountDisabled = 5301, kODErrorCredentialsAccountExpired = 5302, kODErrorCredentialsAccountInactive = 5303, kODErrorCredentialsPasswordExpired = 5400, kODErrorCredentialsPasswordChangeRequired = 5401, kODErrorCredentialsPasswordQualityFailed = 5402, kODErrorCredentialsPasswordTooShort = 5403, kODErrorCredentialsPasswordTooLong = 5404, kODErrorCredentialsPasswordNeedsLetter = 5405, kODErrorCredentialsPasswordNeedsDigit = 5406, kODErrorCredentialsPasswordChangeTooSoon = 5407, kODErrorCredentialsPasswordUnrecoverable = 5408, kODErrorCredentialsInvalidLogonHours = 5500, kODErrorCredentialsInvalidComputer = 5501, /* Underlying plugin errors */ kODErrorPluginOperationNotSupported = 10000, kODErrorPluginError = 10001, kODErrorDaemonError = 10002, };
kODErrorSessionLocalOnlyDaemonInUse
A normal request was issued when the local-only daemon was in use.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorSessionNormalDaemonInUse
A local-only request was issued when the normal daemon was in use.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorSessionDaemonNotRunning
The daemon is not running.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorSessionDaemonRefused
The daemon refused the session.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorSessionProxyCommunicationError
There was a communication error with the remote daemon.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorSessionProxyVersionMismatch
Versions mismatch between the remote daemon and the local framework.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorSessionProxyIPUnreachable
The proxy did not respond.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorSessionProxyUnknownHost
The proxy could not be resolved.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorNodeUnknownName
The node name provided does not exist and cannot be opened.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorNodeUnknownType
The node type provided is not a known value.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorNodeConnectionFailed
The node connection failed.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorNodeUnknownHost
The host provided is invalid.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorQuerySynchronize
A query synchronization has been initiated.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorQueryInvalidMatchType
An invalid match type was provided in the query.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorQueryUnsupportedMatchType
An unsupported match type was provided in the query.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorQueryTimeout
The query timed out.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordReadOnlyNode
The record cannot be modified.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordPermissionError
The changes were denied due to insufficient permissions.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordParameterError
An invalid parameter was provided.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordAlreadyExists
The record create failed because the record already exists.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordTypeDisabled
The record type is disabled by policy for a plug-in.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordAttributeUnknownType
The attribute type is unknown.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordAttributeNotFound
The requested attribute could not be found in the record.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordAttributeValueSchemaError
The attribute value does not meet schema requirements.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorRecordAttributeValueNotFound
The requested attribute value could not be found in the record.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsInvalid
The provided credentials are invalid with the current node.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsMethodNotSupported
The extended authentication method is not supported.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsNotAuthorized
The operation, such as changing a password, is not permitted with current privileges.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsParameterError
An invalid parameter was provided.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsOperationFailed
The requested operation failed.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsServerUnreachable
The authentication server could not be reached.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsServerNotFound
The authentication server could not be found.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsServerError
The authentication server encountered an error.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsServerTimeout
The authentication server timed out.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsContactMaster
The authentication server contacted is not the master server, and the requested operation requires the master server.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsServerCommunicationError
The authentication server encountered a communication error.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsAccountNotFound
The authentication server could not find the provided account.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsAccountDisabled
The account is disabled.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsAccountExpired
The account is expired.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsAccountInactive
The account is inactive.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordExpired
The password has expired and must be changed.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordChangeRequired
The password must be changed.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordQualityFailed
The provided password did not meet minimum quality requirements.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordTooShort
The provided password is too short.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordTooLong
The provided password is too long.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordNeedsLetter
The provided password needs at least one letter.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordNeedsDigit
The provided password needs at least one digit.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordChangeTooSoon
The password was changed too recently to be changed again.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsPasswordUnrecoverable
The password could not be recovered from the authentication database.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsInvalidLogonHours
The logon attempt was not within set logon hours.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorCredentialsInvalidComputer
The account is not permitted to log into this computer.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorPluginOperationNotSupported
The plug-in does not support the requested operation.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorPluginError
A plug-in has encountered an undefined error.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
kODErrorDaemonError
The daemon has encountered an undefined error.
Available in Mac OS X v10.6 and later.
Declared in CFOpenDirectoryErrors.h
.
Last updated: 2009-05-27