Mac Developer Library

Developer

Open Directory Error Codes Reference

Options
Deployment Target:

On This Page

Open Directory Error Codes Reference

Many functions in the Open Directory API return error codes to indicate the cause of a failure. This document explains these error codes.

Constants

  • This enumeration contains error codes returned by the Open Directory framework.

    Declaration

    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, };

    Constants

    • kODErrorSessionLocalOnlyDaemonInUse

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

    • kODErrorSessionNormalDaemonInUse

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

    • kODErrorSessionDaemonNotRunning

      The daemon is not running.

    • kODErrorSessionDaemonRefused

      The daemon refused the session.

    • kODErrorSessionProxyCommunicationError

      There was a communication error with the remote daemon.

    • kODErrorSessionProxyVersionMismatch

      Versions mismatch between the remote daemon and the local framework.

    • kODErrorSessionProxyIPUnreachable

      The proxy did not respond.

    • kODErrorSessionProxyUnknownHost

      The proxy could not be resolved.

    • kODErrorNodeUnknownName

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

    • kODErrorNodeUnknownType

      The node type provided is not a known value.

    • kODErrorNodeConnectionFailed

      The node connection failed.

    • kODErrorNodeUnknownHost

      The host provided is invalid.

    • kODErrorQuerySynchronize

      A query synchronization has been initiated.

    • kODErrorQueryInvalidMatchType

      An invalid match type was provided in the query.

    • kODErrorQueryUnsupportedMatchType

      An unsupported match type was provided in the query.

    • kODErrorQueryTimeout

      The query timed out.

    • kODErrorRecordReadOnlyNode

      The record cannot be modified.

    • kODErrorRecordPermissionError

      The changes were denied due to insufficient permissions.

    • kODErrorRecordParameterError

      An invalid parameter was provided.

    • kODErrorRecordAlreadyExists

      The record create failed because the record already exists.

    • kODErrorRecordTypeDisabled

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

    • kODErrorRecordAttributeUnknownType

      The attribute type is unknown.

    • kODErrorRecordAttributeNotFound

      The requested attribute could not be found in the record.

    • kODErrorRecordAttributeValueSchemaError

      The attribute value does not meet schema requirements.

    • kODErrorRecordAttributeValueNotFound

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

    • kODErrorCredentialsInvalid

      The provided credentials are invalid with the current node.

    • kODErrorCredentialsMethodNotSupported

      The extended authentication method is not supported.

    • kODErrorCredentialsNotAuthorized

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

    • kODErrorCredentialsParameterError

      An invalid parameter was provided.

    • kODErrorCredentialsOperationFailed

      The requested operation failed.

    • kODErrorCredentialsServerUnreachable

      The authentication server could not be reached.

    • kODErrorCredentialsServerNotFound

      The authentication server could not be found.

    • kODErrorCredentialsServerError

      The authentication server encountered an error.

    • kODErrorCredentialsServerTimeout

      The authentication server timed out.

    • kODErrorCredentialsContactMaster

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

    • kODErrorCredentialsServerCommunicationError

      The authentication server encountered a communication error.

    • kODErrorCredentialsAccountNotFound

      The authentication server could not find the provided account.

    • kODErrorCredentialsAccountDisabled

      The account is disabled.

    • kODErrorCredentialsAccountExpired

      The account is expired.

    • kODErrorCredentialsAccountInactive

      The account is inactive.

    • kODErrorCredentialsPasswordExpired

      The password has expired and must be changed.

    • kODErrorCredentialsPasswordChangeRequired

      The password must be changed.

    • kODErrorCredentialsPasswordQualityFailed

      The provided password did not meet minimum quality requirements.

    • kODErrorCredentialsPasswordTooShort

      The provided password is too short.

    • kODErrorCredentialsPasswordTooLong

      The provided password is too long.

    • kODErrorCredentialsPasswordNeedsLetter

      The provided password needs at least one letter.

    • kODErrorCredentialsPasswordNeedsDigit

      The provided password needs at least one digit.

    • kODErrorCredentialsPasswordChangeTooSoon

      The password was changed too recently to be changed again.

    • kODErrorCredentialsPasswordUnrecoverable

      The password could not be recovered from the authentication database.

    • kODErrorCredentialsInvalidLogonHours

      The logon attempt was not within set logon hours.

    • kODErrorCredentialsInvalidComputer

      The account is not permitted to log into this computer.

    • kODErrorPluginOperationNotSupported

      The plug-in does not support the requested operation.

    • kODErrorPluginError

      A plug-in has encountered an undefined error.

    • kODErrorDaemonError

      The daemon has encountered an undefined error.

  • Error domains, as used in NSError objects.

    Declaration

    const CFStringRef kODErrorDomainFramework;

    Constants

    • kODErrorDomainFramework

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