Documentation
¶
Overview ¶
Package opendirectory provides Go bindings for the OpenDirectory framework.
Authenticate users, and search for contact information in Open Directory and LDAP directories.
Classes ¶
- ODAttributeMap
- ODConfiguration
- ODMappings
- ODModuleEntry
- ODNode: An object serves as a Cocoa wrapper for an Open Directory node.
- ODNodeRef: An Open Directory node type.
- ODQuery: An object serves as a Cocoa wrapper for an Open Directory query.
- ODQueryRef: An Open Directory query type.
- ODRecord: An object serves as a Cocoa wrapper for an Open Directory record.
- ODRecordMap
- ODRecordRef: An Open Directory record type.
- ODSession: An object serves as a Cocoa wrapper for an Open Directory session.
- ODSessionRef: An Open Directory session type.
Protocols ¶
- ODQueryDelegate: The protocol defines methods for receiving results returned from an Open Directory query.
Type Aliases ¶
Key Types ¶
- ODConfiguration
- ODRecord - An ODRecord object serves as a Cocoa wrapper for an Open Directory record.
- ODNode - An ODNode object serves as a Cocoa wrapper for an Open Directory node.
- ODSession - An ODSession object serves as a Cocoa wrapper for an Open Directory session.
- ODAttributeMap
- ODMappings
- ODModuleEntry
- ODQuery - An ODQuery object serves as a Cocoa wrapper for an Open Directory query.
- ODRecordMap
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Variables
- func ODContextGetTypeID() uint
- func ODNodeAddAccountPolicy(node ODNodeRef, policy corefoundation.CFDictionaryRef, ...) bool
- func ODNodeCopyAccountPolicies(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
- func ODNodeCopyDetails(node ODNodeRef, keys corefoundation.CFArrayRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
- func ODNodeCopyPolicies(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRefdeprecated
- func ODNodeCopySubnodeNames(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
- func ODNodeCopySupportedAttributes(node ODNodeRef, recordType unsafe.Pointer, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
- func ODNodeCopySupportedPolicies(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRefdeprecated
- func ODNodeCopySupportedRecordTypes(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
- func ODNodeCopyUnreachableSubnodeNames(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
- func ODNodeCustomCall(node ODNodeRef, customCode int, data corefoundation.CFDataRef, ...) corefoundation.CFDataRef
- func ODNodeCustomFunction(node ODNodeRef, function corefoundation.CFStringRef, ...) corefoundation.CFTypeRef
- func ODNodeGetName(node ODNodeRef) corefoundation.CFStringRef
- func ODNodeGetTypeID() uint
- func ODNodePasswordContentCheck(node ODNodeRef, password corefoundation.CFStringRef, ...) bool
- func ODNodeRemoveAccountPolicy(node ODNodeRef, policy corefoundation.CFDictionaryRef, ...) bool
- func ODNodeRemovePolicy(node ODNodeRef, policyType ODPolicyType, err *corefoundation.CFErrorRef) booldeprecated
- func ODNodeSetAccountPolicies(node ODNodeRef, policies corefoundation.CFDictionaryRef, ...) bool
- func ODNodeSetCredentials(node ODNodeRef, recordType unsafe.Pointer, ...) bool
- func ODNodeSetCredentialsExtended(node ODNodeRef, recordType unsafe.Pointer, authType ODAuthenticationType, ...) bool
- func ODNodeSetCredentialsUsingKerberosCache(node ODNodeRef, cacheName corefoundation.CFStringRef, ...) booldeprecated
- func ODNodeSetPolicies(node ODNodeRef, policies corefoundation.CFDictionaryRef, ...) booldeprecated
- func ODNodeSetPolicy(node ODNodeRef, policyType ODPolicyType, value corefoundation.CFTypeRef, ...) booldeprecated
- func ODQueryCopyResults(query ODQueryRef, allowPartialResults bool, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
- func ODQueryGetTypeID() uint
- func ODQueryScheduleWithRunLoop(query ODQueryRef, runLoop corefoundation.CFRunLoopRef, ...)
- func ODQuerySetCallback(query ODQueryRef, callback ODQueryCallback, userInfo unsafe.Pointer)
- func ODQuerySetDispatchQueue(query ODQueryRef, queue dispatch.Queue)
- func ODQuerySynchronize(query ODQueryRef)
- func ODQueryUnscheduleFromRunLoop(query ODQueryRef, runLoop corefoundation.CFRunLoopRef, ...)
- func ODRecordAddAccountPolicy(record ODRecordRef, policy corefoundation.CFDictionaryRef, ...) bool
- func ODRecordAddMember(group ODRecordRef, member ODRecordRef, err *corefoundation.CFErrorRef) bool
- func ODRecordAddValue(record ODRecordRef, attribute unsafe.Pointer, value corefoundation.CFTypeRef, ...) bool
- func ODRecordAuthenticationAllowed(record ODRecordRef, err *corefoundation.CFErrorRef) bool
- func ODRecordChangePassword(record ODRecordRef, oldPassword corefoundation.CFStringRef, ...) bool
- func ODRecordContainsMember(group ODRecordRef, member ODRecordRef, err *corefoundation.CFErrorRef) bool
- func ODRecordCopyAccountPolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
- func ODRecordCopyDetails(record ODRecordRef, attributes corefoundation.CFArrayRef, ...) corefoundation.CFDictionaryRef
- func ODRecordCopyEffectivePolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRefdeprecated
- func ODRecordCopyPasswordPolicy(allocator corefoundation.CFAllocatorRef, record ODRecordRef, ...) corefoundation.CFDictionaryRefdeprecated
- func ODRecordCopyPolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRefdeprecated
- func ODRecordCopySupportedPolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRefdeprecated
- func ODRecordCopyValues(record ODRecordRef, attribute unsafe.Pointer, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
- func ODRecordDelete(record ODRecordRef, err *corefoundation.CFErrorRef) bool
- func ODRecordGetRecordName(record ODRecordRef) corefoundation.CFStringRef
- func ODRecordGetRecordType(record ODRecordRef) corefoundation.CFStringRef
- func ODRecordGetTypeID() uint
- func ODRecordPasswordChangeAllowed(record ODRecordRef, newPassword corefoundation.CFStringRef, ...) bool
- func ODRecordRemoveAccountPolicy(record ODRecordRef, policy corefoundation.CFDictionaryRef, ...) bool
- func ODRecordRemoveMember(group ODRecordRef, member ODRecordRef, err *corefoundation.CFErrorRef) bool
- func ODRecordRemovePolicy(record ODRecordRef, policy ODPolicyType, err *corefoundation.CFErrorRef) booldeprecated
- func ODRecordRemoveValue(record ODRecordRef, attribute unsafe.Pointer, value corefoundation.CFTypeRef, ...) bool
- func ODRecordSecondsUntilAuthenticationsExpire(record ODRecordRef) int64
- func ODRecordSecondsUntilPasswordExpires(record ODRecordRef) int64
- func ODRecordSetAccountPolicies(record ODRecordRef, policies corefoundation.CFDictionaryRef, ...) bool
- func ODRecordSetNodeCredentials(record ODRecordRef, username corefoundation.CFStringRef, ...) bool
- func ODRecordSetNodeCredentialsExtended(record ODRecordRef, recordType unsafe.Pointer, authType ODAuthenticationType, ...) bool
- func ODRecordSetNodeCredentialsUsingKerberosCache(record ODRecordRef, cacheName corefoundation.CFStringRef, ...) booldeprecated
- func ODRecordSetPolicies(record ODRecordRef, policies corefoundation.CFDictionaryRef, ...) booldeprecated
- func ODRecordSetPolicy(record ODRecordRef, policy ODPolicyType, value corefoundation.CFTypeRef, ...) booldeprecated
- func ODRecordSetValue(record ODRecordRef, attribute unsafe.Pointer, ...) bool
- func ODRecordSynchronize(record ODRecordRef, err *corefoundation.CFErrorRef) bool
- func ODRecordVerifyPassword(record ODRecordRef, password corefoundation.CFStringRef, ...) bool
- func ODRecordVerifyPasswordExtended(record ODRecordRef, authType ODAuthenticationType, ...) bool
- func ODRecordWillAuthenticationsExpire(record ODRecordRef, willExpireIn uint64) bool
- func ODRecordWillPasswordExpire(record ODRecordRef, willExpireIn uint64) bool
- func ODSessionCopyNodeNames(allocator corefoundation.CFAllocatorRef, session ODSessionRef, ...) corefoundation.CFArrayRef
- func ODSessionGetTypeID() uint
- type IODAttributeMap
- type IODConfiguration
- type IODMappings
- type IODModuleEntry
- type IODNode
- type IODQuery
- type IODRecord
- type IODRecordMap
- type IODSession
- type KODExpirationTime
- type KODMatch
- type KODNodeType
- type ODAttributeMap
- func (o ODAttributeMap) Autorelease() ODAttributeMap
- func (o ODAttributeMap) CustomAttributes() foundation.INSArray
- func (o ODAttributeMap) CustomQueryFunction() string
- func (o ODAttributeMap) CustomTranslationFunction() string
- func (o ODAttributeMap) Init() ODAttributeMap
- func (o ODAttributeMap) SetCustomAttributes(value foundation.INSArray)
- func (o ODAttributeMap) SetCustomQueryFunction(value string)
- func (o ODAttributeMap) SetCustomTranslationFunction(value string)
- func (o ODAttributeMap) SetStaticValue(staticValue string)
- func (o ODAttributeMap) SetValue(value string)
- func (o ODAttributeMap) SetVariableSubstitution(variableSubstitution string)
- func (o ODAttributeMap) Value() string
- type ODAttributeMapClass
- type ODAuthenticationType
- type ODConfiguration
- func (o ODConfiguration) AddTrustTypeTrustAccountTrustPasswordUsernamePasswordJoinExistingError(trustType string, account string, accountPassword string, username string, ...) (bool, error)
- func (o ODConfiguration) AuthenticationModuleEntries() foundation.INSArray
- func (o ODConfiguration) Autorelease() ODConfiguration
- func (o ODConfiguration) Comment() string
- func (o ODConfiguration) ConnectionIdleTimeoutInSeconds() int
- func (o ODConfiguration) ConnectionSetupTimeoutInSeconds() int
- func (o ODConfiguration) DefaultMappings() IODMappings
- func (o ODConfiguration) DefaultModuleEntries() foundation.INSArray
- func (o ODConfiguration) DiscoveryModuleEntries() foundation.INSArray
- func (o ODConfiguration) GeneralModuleEntries() foundation.INSArray
- func (o ODConfiguration) HideRegistration() bool
- func (o ODConfiguration) Init() ODConfiguration
- func (o ODConfiguration) ManInTheMiddleProtection() bool
- func (o ODConfiguration) NodeName() string
- func (o ODConfiguration) PacketEncryption() int
- func (o ODConfiguration) PacketSigning() int
- func (o ODConfiguration) PreferredDestinationHostName() string
- func (o ODConfiguration) PreferredDestinationHostPort() uint16
- func (o ODConfiguration) QueryTimeoutInSeconds() int
- func (o ODConfiguration) RemoveTrustUsingUsernamePasswordDeleteTrustAccountError(username string, password string, deleteAccount bool) (bool, error)
- func (o ODConfiguration) SaveUsingAuthorizationError(authorization objectivec.IObject) (bool, error)
- func (o ODConfiguration) SetAuthenticationModuleEntries(value foundation.INSArray)
- func (o ODConfiguration) SetComment(value string)
- func (o ODConfiguration) SetConnectionIdleTimeoutInSeconds(value int)
- func (o ODConfiguration) SetConnectionSetupTimeoutInSeconds(value int)
- func (o ODConfiguration) SetDefaultMappings(value IODMappings)
- func (o ODConfiguration) SetDefaultModuleEntries(value foundation.INSArray)
- func (o ODConfiguration) SetDiscoveryModuleEntries(value foundation.INSArray)
- func (o ODConfiguration) SetGeneralModuleEntries(value foundation.INSArray)
- func (o ODConfiguration) SetHideRegistration(value bool)
- func (o ODConfiguration) SetManInTheMiddleProtection(value bool)
- func (o ODConfiguration) SetNodeName(value string)
- func (o ODConfiguration) SetPacketEncryption(value int)
- func (o ODConfiguration) SetPacketSigning(value int)
- func (o ODConfiguration) SetPreferredDestinationHostName(value string)
- func (o ODConfiguration) SetPreferredDestinationHostPort(value uint16)
- func (o ODConfiguration) SetQueryTimeoutInSeconds(value int)
- func (o ODConfiguration) SetTemplateName(value string)
- func (o ODConfiguration) SetVirtualSubnodes(value foundation.INSArray)
- func (o ODConfiguration) TemplateName() string
- func (o ODConfiguration) TrustAccount() string
- func (o ODConfiguration) TrustKerberosPrincipal() string
- func (o ODConfiguration) TrustMetaAccount() string
- func (o ODConfiguration) TrustType() string
- func (o ODConfiguration) TrustUsesKerberosKeytab() bool
- func (o ODConfiguration) TrustUsesMutualAuthentication() bool
- func (o ODConfiguration) TrustUsesSystemKeychain() bool
- func (o ODConfiguration) VirtualSubnodes() foundation.INSArray
- type ODConfigurationClass
- type ODContextRef
- type ODErrorUserInfoKeyType
- type ODFrameworkErrors
- type ODMappings
- func (o ODMappings) Autorelease() ODMappings
- func (o ODMappings) Comment() string
- func (o ODMappings) Function() string
- func (o ODMappings) FunctionAttributes() foundation.INSArray
- func (o ODMappings) Identifier() string
- func (o ODMappings) Init() ODMappings
- func (o ODMappings) RecordMapForStandardRecordType(stdType string) IODRecordMap
- func (o ODMappings) RecordTypes() foundation.INSArray
- func (o ODMappings) SetComment(value string)
- func (o ODMappings) SetFunction(value string)
- func (o ODMappings) SetFunctionAttributes(value foundation.INSArray)
- func (o ODMappings) SetIdentifier(value string)
- func (o ODMappings) SetRecordMapForStandardRecordType(map_ IODRecordMap, stdType string)
- func (o ODMappings) SetTemplateName(value string)
- func (o ODMappings) TemplateName() string
- type ODMappingsClass
- type ODMatchType
- type ODModuleEntry
- func (o ODModuleEntry) Autorelease() ODModuleEntry
- func (o ODModuleEntry) Init() ODModuleEntry
- func (o ODModuleEntry) Mappings() IODMappings
- func (o ODModuleEntry) Name() string
- func (o ODModuleEntry) Option(optionName string) objectivec.IObject
- func (o ODModuleEntry) SetMappings(value IODMappings)
- func (o ODModuleEntry) SetName(value string)
- func (o ODModuleEntry) SetOptionValue(optionName string, value objectivec.IObject)
- func (o ODModuleEntry) SetUuidString(value string)
- func (o ODModuleEntry) SetXpcServiceName(value string)
- func (o ODModuleEntry) SupportedOptions() foundation.INSArray
- func (o ODModuleEntry) UuidString() string
- func (o ODModuleEntry) XpcServiceName() string
- type ODModuleEntryClass
- type ODNode
- func (o ODNode) AccountPoliciesAndReturnError() (foundation.INSDictionary, error)
- func (o ODNode) AddAccountPolicyToCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
- func (o ODNode) Autorelease() ODNode
- func (o ODNode) Configuration() IODConfiguration
- func (o ODNode) CreateRecordWithRecordTypeNameAttributesError(inRecordType unsafe.Pointer, inRecordName string, ...) (IODRecord, error)
- func (o ODNode) CustomCallSendDataError(inCustomCode int, inSendData foundation.NSData) (foundation.NSData, error)
- func (o ODNode) CustomFunctionPayloadError(function string, payload objectivec.IObject) (objectivec.IObject, error)
- func (o ODNode) Init() ODNode
- func (o ODNode) InitWithSessionNameError(inSession IODSession, inName string) (ODNode, error)
- func (o ODNode) InitWithSessionTypeError(inSession IODSession, inType ODNodeType) (ODNode, error)
- func (o ODNode) NodeDetailsForKeysError(inKeys foundation.INSArray) (foundation.INSDictionary, error)
- func (o ODNode) NodeName() string
- func (o ODNode) PasswordContentCheckForRecordNameError(password string, recordName string) (bool, error)
- func (o ODNode) RecordWithRecordTypeNameAttributesError(inRecordType unsafe.Pointer, inRecordName string, ...) (IODRecord, error)
- func (o ODNode) RemoveAccountPolicyFromCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
- func (o ODNode) SetAccountPoliciesError(policies foundation.INSDictionary) (bool, error)
- func (o ODNode) SetCredentialsWithRecordTypeRecordNamePasswordError(inRecordType unsafe.Pointer, inRecordName string, inPassword string) (bool, error)
- func (o ODNode) SubnodeNamesAndReturnError() (foundation.INSArray, error)
- func (o ODNode) SupportedAttributesForRecordTypeError(inRecordType unsafe.Pointer) (foundation.INSArray, error)
- func (o ODNode) SupportedRecordTypesAndReturnError() (foundation.INSArray, error)
- func (o ODNode) UnreachableSubnodeNamesAndReturnError() (foundation.INSArray, error)
- type ODNodeClass
- type ODNodeRef
- func ODNodeCreateCopy(allocator corefoundation.CFAllocatorRef, node ODNodeRef, ...) ODNodeRef
- func ODNodeCreateWithName(allocator corefoundation.CFAllocatorRef, session ODSessionRef, ...) ODNodeRef
- func ODNodeCreateWithNodeType(allocator corefoundation.CFAllocatorRef, session ODSessionRef, ...) ODNodeRef
- type ODNodeType
- type ODOptionKeyType
- type ODPacketEncryption
- type ODPacketSigning
- type ODPolicyAttributeType
- type ODPolicyCategoryType
- type ODPolicyKeyType
- type ODPolicyType
- type ODQuery
- func (o ODQuery) Autorelease() ODQuery
- func (o ODQuery) Delegate() ODQueryDelegate
- func (o ODQuery) Init() ODQuery
- func (o ODQuery) InitWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError(inNode IODNode, inRecordTypeOrList objectivec.IObject, ...) (ODQuery, error)
- func (o ODQuery) OperationQueue() foundation.OperationQueue
- func (o ODQuery) RemoveFromRunLoopForMode(inRunLoop foundation.NSRunLoop, inMode string)
- func (o ODQuery) ResultsAllowingPartialError(inAllowPartialResults bool) (foundation.INSArray, error)
- func (o ODQuery) ScheduleInRunLoopForMode(inRunLoop foundation.NSRunLoop, inMode string)
- func (o ODQuery) SetDelegate(value ODQueryDelegate)
- func (o ODQuery) SetOperationQueue(value foundation.OperationQueue)
- func (o ODQuery) Synchronize()
- type ODQueryCallback
- type ODQueryClass
- type ODQueryDelegate
- type ODQueryDelegateConfig
- type ODQueryDelegateObject
- type ODQueryRef
- type ODRecord
- func (o ODRecord) AccountPoliciesAndReturnError() (foundation.INSDictionary, error)
- func (o ODRecord) AddAccountPolicyToCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
- func (o ODRecord) AddMemberRecordError(inRecord IODRecord) (bool, error)
- func (o ODRecord) AddValueToAttributeError(inValue objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
- func (o ODRecord) AuthenticationAllowedAndReturnError() (bool, error)
- func (o ODRecord) Autorelease() ODRecord
- func (o ODRecord) ChangePasswordToPasswordError(oldPassword string, newPassword string) (bool, error)
- func (o ODRecord) DeleteRecordAndReturnError() (bool, error)
- func (o ODRecord) Init() ODRecord
- func (o ODRecord) IsMemberRecordError(inRecord IODRecord) (bool, error)
- func (o ODRecord) PasswordChangeAllowedError(newPassword string) (bool, error)
- func (o ODRecord) RecordDetailsForAttributesError(inAttributes foundation.INSArray) (foundation.INSDictionary, error)
- func (o ODRecord) RecordName() string
- func (o ODRecord) RecordType() string
- func (o ODRecord) RemoveAccountPolicyFromCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
- func (o ODRecord) RemoveMemberRecordError(inRecord IODRecord) (bool, error)
- func (o ODRecord) RemoveValueFromAttributeError(inValue objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
- func (o ODRecord) RemoveValuesForAttributeError(inAttribute unsafe.Pointer) (bool, error)
- func (o ODRecord) SecondsUntilAuthenticationsExpire() int64
- func (o ODRecord) SecondsUntilPasswordExpires() int64
- func (o ODRecord) SetAccountPoliciesError(policies foundation.INSDictionary) (bool, error)
- func (o ODRecord) SetNodeCredentialsPasswordError(inUsername string, inPassword string) (bool, error)
- func (o ODRecord) SetValueForAttributeError(inValueOrValues objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
- func (o ODRecord) SynchronizeAndReturnError() (bool, error)
- func (o ODRecord) ValuesForAttributeError(inAttribute unsafe.Pointer) (foundation.INSArray, error)
- func (o ODRecord) VerifyPasswordError(inPassword string) (bool, error)
- func (o ODRecord) WillAuthenticationsExpire(willExpireIn uint64) bool
- func (o ODRecord) WillPasswordExpire(willExpireIn uint64) bool
- type ODRecordClass
- type ODRecordMap
- func (o ODRecordMap) AttributeMapForStandardAttribute(standardAttribute string) IODAttributeMap
- func (o ODRecordMap) Attributes() foundation.INSDictionary
- func (o ODRecordMap) Autorelease() ODRecordMap
- func (o ODRecordMap) Init() ODRecordMap
- func (o ODRecordMap) Native() string
- func (o ODRecordMap) OdPredicate() foundation.INSDictionary
- func (o ODRecordMap) SetAttributeMapForStandardAttribute(attributeMap IODAttributeMap, standardAttribute string)
- func (o ODRecordMap) SetNative(value string)
- func (o ODRecordMap) SetOdPredicate(value foundation.INSDictionary)
- func (o ODRecordMap) StandardAttributeTypes() foundation.INSArray
- type ODRecordMapClass
- type ODRecordRef
- type ODSession
- func (o ODSession) AddConfigurationAuthorizationError(configuration IODConfiguration, authorization objectivec.IObject) (bool, error)
- func (o ODSession) Autorelease() ODSession
- func (o ODSession) ConfigurationAuthorizationAllowingUserInteractionError(allowInteraction bool) (objectivec.IObject, error)
- func (o ODSession) ConfigurationForNodename(nodename string) IODConfiguration
- func (o ODSession) ConfigurationTemplateNames() foundation.INSArray
- func (o ODSession) DeleteConfigurationAuthorizationError(configuration IODConfiguration, authorization objectivec.IObject) (bool, error)
- func (o ODSession) DeleteConfigurationWithNodenameAuthorizationError(nodename string, authorization objectivec.IObject) (bool, error)
- func (o ODSession) Init() ODSession
- func (o ODSession) InitWithOptionsError(inOptions foundation.INSDictionary) (ODSession, error)
- func (o ODSession) MappingTemplateNames() foundation.INSArray
- func (o ODSession) NodeNamesAndReturnError() (foundation.INSArray, error)
- type ODSessionClass
- type ODSessionRef
Constants ¶
This section is empty.
Variables ¶
var ( // See: https://developer.apple.com/documentation/OpenDirectory/ODFrameworkErrorDomain ODFrameworkErrorDomain string // ODSessionProxyAddress is the address to connect to via proxy. The value is of type [NSString]. // // See: https://developer.apple.com/documentation/OpenDirectory/ODSessionProxyAddress ODSessionProxyAddress string // ODSessionProxyPassword is the password to connect with via proxy. The value is of type [NSString]. // // See: https://developer.apple.com/documentation/OpenDirectory/ODSessionProxyPassword ODSessionProxyPassword string // ODSessionProxyPort is the port to connect to via proxy. The value is of type [NSNumber]. // // See: https://developer.apple.com/documentation/OpenDirectory/ODSessionProxyPort ODSessionProxyPort string // ODSessionProxyUsername is the username to connect with via proxy. The value is of type [NSString]. // // See: https://developer.apple.com/documentation/OpenDirectory/ODSessionProxyUsername ODSessionProxyUsername string // See: https://developer.apple.com/documentation/OpenDirectory/ODTrustTypeAnonymous ODTrustTypeAnonymous string // See: https://developer.apple.com/documentation/OpenDirectory/ODTrustTypeJoined ODTrustTypeJoined string // See: https://developer.apple.com/documentation/OpenDirectory/ODTrustTypeUsingCredentials ODTrustTypeUsingCredentials string )
var ( // KODAttributeTypeAccessControlEntry is the attribute type used to store directory access control directives. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAccessControlEntry KODAttributeTypeAccessControlEntry unsafe.Pointer // KODAttributeTypeAddressLine1 is the attribute type used to store the first line of a user’s address data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAddressLine1 KODAttributeTypeAddressLine1 unsafe.Pointer // KODAttributeTypeAddressLine2 is the attribute type used to store the second line of a user’s address data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAddressLine2 KODAttributeTypeAddressLine2 unsafe.Pointer // KODAttributeTypeAddressLine3 is the attribute type used to store the third line of a user’s address data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAddressLine3 KODAttributeTypeAddressLine3 unsafe.Pointer // KODAttributeTypeAdminLimits is the attribute type of an XML property list that indicates what an admin user can edit. Found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAdminLimits KODAttributeTypeAdminLimits unsafe.Pointer // KODAttributeTypeAdvertisedServices is the attribute type used to specify (Bonjour) advertised services. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAdvertisedServices KODAttributeTypeAdvertisedServices unsafe.Pointer // KODAttributeTypeAlias is the attribute type used to specify an alias that contains a pointer to another record, node, or attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAlias KODAttributeTypeAlias unsafe.Pointer // KODAttributeTypeAllAttributes is the attribute type used in requesting all attribute types in a search. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAllAttributes KODAttributeTypeAllAttributes unsafe.Pointer // KODAttributeTypeAllTypes is the attribute type used to indicate all attribute types for a given record type the config node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAllTypes KODAttributeTypeAllTypes unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAltSecurityIdentities KODAttributeTypeAltSecurityIdentities unsafe.Pointer // KODAttributeTypeAreaCode is the attribute type used to store a user’s area code. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAreaCode KODAttributeTypeAreaCode unsafe.Pointer // KODAttributeTypeAttrListRefCount is the attribute type used to specify the total count of attribute list references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAttrListRefCount KODAttributeTypeAttrListRefCount unsafe.Pointer // KODAttributeTypeAttrListRefs is the attribute type used to store the attribute list references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAttrListRefs KODAttributeTypeAttrListRefs unsafe.Pointer // KODAttributeTypeAttrListValueRefCount is the attribute type used to specify the total count of attribute list value references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAttrListValueRefCount KODAttributeTypeAttrListValueRefCount unsafe.Pointer // KODAttributeTypeAttrListValueRefs is the attribute type used to store the attribute list value references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAttrListValueRefs KODAttributeTypeAttrListValueRefs unsafe.Pointer // KODAttributeTypeAuthCredential is the attribute type used to store an authentication credential used to authenticate to a directory. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAuthCredential KODAttributeTypeAuthCredential unsafe.Pointer // KODAttributeTypeAuthMethod is the attribute type used to specify a record’s authentication method. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAuthMethod KODAttributeTypeAuthMethod unsafe.Pointer // KODAttributeTypeAuthenticationAuthority is the attribute type used to specify the mechanism used to verify or set a user’s password. Typically found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAuthenticationAuthority KODAttributeTypeAuthenticationAuthority unsafe.Pointer // KODAttributeTypeAuthenticationHint is the attribute type of an authentication hint attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAuthenticationHint KODAttributeTypeAuthenticationHint unsafe.Pointer // KODAttributeTypeAuthorityRevocationList is the attribute type of the authority revocation list attribute, which defines certificate authority certificates that are no longer trusted. Typically found in records of type `kODRecordTypeCertificateAuthorities`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAuthorityRevocationList KODAttributeTypeAuthorityRevocationList unsafe.Pointer // KODAttributeTypeAutomaticSearchPath is the attribute type used to specify the automatic search path used by a search node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAutomaticSearchPath KODAttributeTypeAutomaticSearchPath unsafe.Pointer // KODAttributeTypeAutomountInformation is the attribute type used to store automount information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeAutomountInformation KODAttributeTypeAutomountInformation unsafe.Pointer // KODAttributeTypeBirthday is the attribute type of a birthday attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeBirthday KODAttributeTypeBirthday unsafe.Pointer // KODAttributeTypeBootParams is the attribute type used to store boot parameters. Typically found in host or machine records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeBootParams KODAttributeTypeBootParams unsafe.Pointer // KODAttributeTypeBuildVersion is the attribute type used to specify the build version. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeBuildVersion KODAttributeTypeBuildVersion unsafe.Pointer // KODAttributeTypeBuilding is the attribute type used to store a user’s building information. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePeople`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeBuilding KODAttributeTypeBuilding unsafe.Pointer // KODAttributeTypeCACertificate is the attribute type of a certificate authority certificate attribute, which contains the binary of the certificate. Typically found in records of type `kODRecordTypeCertificateAuthority`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCACertificate KODAttributeTypeCACertificate unsafe.Pointer // KODAttributeTypeCapacity is the attribute type of a capacity attribute, which indicates the capacity of a resource. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCapacity KODAttributeTypeCapacity unsafe.Pointer // KODAttributeTypeCertificateRevocationList is the attribute type of the certificate revocation list attribute, which defines certificates that are no longer trusted. Typically found in records of type `kODRecordTypeCertificateAuthorities`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCertificateRevocationList KODAttributeTypeCertificateRevocationList unsafe.Pointer // KODAttributeTypeCity is the attribute type used to store a user’s city information. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePeople`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCity KODAttributeTypeCity unsafe.Pointer // KODAttributeTypeComment is the attribute type of an unformatted comment attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeComment KODAttributeTypeComment unsafe.Pointer // KODAttributeTypeCompany is the attribute type used to store a user’s company information. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePeople`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCompany KODAttributeTypeCompany unsafe.Pointer // KODAttributeTypeComputers is the attribute type used to store a list of computers. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeComputers KODAttributeTypeComputers unsafe.Pointer // KODAttributeTypeConfigAvailable is the attribute type for the config available flag. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeConfigAvailable KODAttributeTypeConfigAvailable unsafe.Pointer // KODAttributeTypeConfigFile is the attribute type used to specify the config file name. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeConfigFile KODAttributeTypeConfigFile unsafe.Pointer // KODAttributeTypeContactGUID is the attribute type of the contact GUID attribute. Typically found in records of type `kODRecordTypeGroups`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeContactGUID KODAttributeTypeContactGUID unsafe.Pointer // KODAttributeTypeContactPerson is the attribute type of the contact person attribute, which indicates the contact person of a machine. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeContactPerson KODAttributeTypeContactPerson unsafe.Pointer // KODAttributeTypeCopyTimestamp is the attribute type used to store a timestamp used in local account caching. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCopyTimestamp KODAttributeTypeCopyTimestamp unsafe.Pointer // KODAttributeTypeCoreFWVersion is the attribute type used to specify the version of the core framework. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCoreFWVersion KODAttributeTypeCoreFWVersion unsafe.Pointer // KODAttributeTypeCountry is the attribute type used to store a user’s country or region information. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePeople`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCountry KODAttributeTypeCountry unsafe.Pointer // KODAttributeTypeCreationTimestamp is the attribute type of the creation timestamp attribute, which indicates the time the record was created. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCreationTimestamp KODAttributeTypeCreationTimestamp unsafe.Pointer // KODAttributeTypeCrossCertificatePair is the attribute type of the cross certificate attribute, which contains the binary of two certificates that verify one another. Typically found in records of type `kODRecordTypeCertificateAuthorities`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCrossCertificatePair KODAttributeTypeCrossCertificatePair unsafe.Pointer // KODAttributeTypeCustomSearchPath is the attribute type used to specify an admin-configured search path used by a search node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeCustomSearchPath KODAttributeTypeCustomSearchPath unsafe.Pointer // KODAttributeTypeDNSDomain is the attribute type of the DNS domain attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDNSDomain KODAttributeTypeDNSDomain unsafe.Pointer // KODAttributeTypeDNSName is the attribute type used to specify a DNS resolver nameserver. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDNSName KODAttributeTypeDNSName unsafe.Pointer // KODAttributeTypeDNSNameServer is the attribute type of the DNS name server attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDNSNameServer KODAttributeTypeDNSNameServer unsafe.Pointer // KODAttributeTypeDataStamp is the attribute type of the data stamp attribute, which is used for checksum and accessing metadata. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDataStamp KODAttributeTypeDataStamp unsafe.Pointer // KODAttributeTypeDateRecordCreated is the attribute type used to store a record’s creation date. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDateRecordCreated KODAttributeTypeDateRecordCreated unsafe.Pointer // KODAttributeTypeDepartment is the attribute type used to store a user’s department information. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePeople`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDepartment KODAttributeTypeDepartment unsafe.Pointer // KODAttributeTypeDirRefCount is the attribute type used to specify the total count of directory references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDirRefCount KODAttributeTypeDirRefCount unsafe.Pointer // KODAttributeTypeDirRefs is the attribute type used to store the directory references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeDirRefs KODAttributeTypeDirRefs unsafe.Pointer // KODAttributeTypeEMailAddress is the attribute type used to store a user’s email address. Typically found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeEMailAddress KODAttributeTypeEMailAddress unsafe.Pointer // KODAttributeTypeEMailContacts is the attribute type used to store a user’s custom email information. Typically found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeEMailContacts KODAttributeTypeEMailContacts unsafe.Pointer // KODAttributeTypeENetAddress is the attribute type of the ethernet address attribute, which specifies a record’s ethernet address (MAC address). // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeENetAddress KODAttributeTypeENetAddress unsafe.Pointer // KODAttributeTypeExpire is the attribute type of the expiration attribute, which indicates the expiration date or time of a record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeExpire KODAttributeTypeExpire unsafe.Pointer // KODAttributeTypeFWVersion is the attribute type used to specify the version of the framework. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeFWVersion KODAttributeTypeFWVersion unsafe.Pointer // KODAttributeTypeFaxNumber is the attribute type used to store a user’s fax number. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePeople`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeFaxNumber KODAttributeTypeFaxNumber unsafe.Pointer // KODAttributeTypeFirstName is the attribute type of the first name attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeFirstName KODAttributeTypeFirstName unsafe.Pointer // KODAttributeTypeFullName is the attribute type of the full name attribute, which indicates the full name of the record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeFullName KODAttributeTypeFullName unsafe.Pointer // KODAttributeTypeFunctionalState is the attribute type used to specify the functional state of the plug-in. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeFunctionalState KODAttributeTypeFunctionalState unsafe.Pointer // KODAttributeTypeGUID is the attribute type of the GUID attribute, which indicates a record’s 128-bit GUID. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeGUID KODAttributeTypeGUID unsafe.Pointer // KODAttributeTypeGroup is the attribute type used to store a list of groups. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeGroup KODAttributeTypeGroup unsafe.Pointer // KODAttributeTypeGroupMembers is the attribute type used to specify the GUID values of members of a group that are not groups. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeGroupMembers KODAttributeTypeGroupMembers unsafe.Pointer // KODAttributeTypeGroupMembership is the attribute type used to specify a list of users that belong to a given group. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeGroupMembership KODAttributeTypeGroupMembership unsafe.Pointer // KODAttributeTypeGroupServices is the attribute type used to specify an XML property list that defines a group’s services. Typically found in records of type `kODRecordTypeGroups`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeGroupServices KODAttributeTypeGroupServices unsafe.Pointer // KODAttributeTypeHTML is the attribute type used to specify an HTML location. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeHTML KODAttributeTypeHTML unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeHardwareUUID KODAttributeTypeHardwareUUID unsafe.Pointer // KODAttributeTypeHomeDirectory is the attribute type used to specify the allowed usage of a user’s home directory in bytes. Typically found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeHomeDirectory KODAttributeTypeHomeDirectory unsafe.Pointer // KODAttributeTypeHomeDirectoryQuota is the attribute type of the home directory quota attribute, which is listed in bytes. Typically found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeHomeDirectoryQuota KODAttributeTypeHomeDirectoryQuota unsafe.Pointer // KODAttributeTypeHomeDirectorySoftQuota is the attribute type of the home directory soft quota attribute, which is listed in bytes. This specifies a size limit at which users are notified that they are reaching their hard quota. Typically found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeHomeDirectorySoftQuota KODAttributeTypeHomeDirectorySoftQuota unsafe.Pointer // KODAttributeTypeHomeLocOwner is the attribute type of the workgroup shared home directory attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeHomeLocOwner KODAttributeTypeHomeLocOwner unsafe.Pointer // KODAttributeTypeHomePhoneNumber is the attribute type used to store a user’s home phone number. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePeople`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeHomePhoneNumber KODAttributeTypeHomePhoneNumber unsafe.Pointer // KODAttributeTypeIMHandle is the attribute type used to store a user’s instant messaging handles. Typically found in records of type `kODRecordTypeUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeIMHandle KODAttributeTypeIMHandle unsafe.Pointer // KODAttributeTypeIPAddress is the attribute type used to specify an IP address. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeIPAddress KODAttributeTypeIPAddress unsafe.Pointer // KODAttributeTypeIPAddressAndENetAddress is the attribute type used to specify a pairing of an IPv4 or IPv6 address with an ethernet address. Typically found in records of type `kODRecordTypeComputers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeIPAddressAndENetAddress KODAttributeTypeIPAddressAndENetAddress unsafe.Pointer // KODAttributeTypeIPv6Address is the attribute type used to specify an IPv6 address. Typically found in records of type `kODRecordTypeComputers` and `kODRecordTypeHosts`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeIPv6Address KODAttributeTypeIPv6Address unsafe.Pointer // KODAttributeTypeInternetAlias is the attribute type of the internet alias attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeInternetAlias KODAttributeTypeInternetAlias unsafe.Pointer // KODAttributeTypeJPEGPhoto is the attribute type used to store binary picture data in JPEG format. Typically found in records of type `kODRecordTypeUsers`, `kODRecordTypePeople`, and `kODRecordTypeGroups`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeJPEGPhoto KODAttributeTypeJPEGPhoto unsafe.Pointer // KODAttributeTypeJobTitle is the attribute type used to store a user’s job title. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeJobTitle KODAttributeTypeJobTitle unsafe.Pointer // KODAttributeTypeKDCAuthKey is the attribute type used to store a KDC primary key. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeKDCAuthKey KODAttributeTypeKDCAuthKey unsafe.Pointer // KODAttributeTypeKDCConfigData is the attribute type of the KDC configuration file attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeKDCConfigData KODAttributeTypeKDCConfigData unsafe.Pointer // KODAttributeTypeKerberosRealm is an attribute type used to support Kerberos SMB server services. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeKerberosRealm KODAttributeTypeKerberosRealm unsafe.Pointer // KODAttributeTypeKerberosServices is the attribute type of the Kerberos services attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeKerberosServices KODAttributeTypeKerberosServices unsafe.Pointer // KODAttributeTypeKeywords is the attribute type used to specify keywords for search capability. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeKeywords KODAttributeTypeKeywords unsafe.Pointer // KODAttributeTypeLDAPReadReplicas is the attribute type used to specify a list of LDAP server URLs that can be used to read directory data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLDAPReadReplicas KODAttributeTypeLDAPReadReplicas unsafe.Pointer // KODAttributeTypeLDAPSearchBaseSuffix is the attribute type of the LDAP server search base suffix attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLDAPSearchBaseSuffix KODAttributeTypeLDAPSearchBaseSuffix unsafe.Pointer // KODAttributeTypeLDAPWriteReplicas is the attribute type used to specify a list of LDAP server URLs that can be used to write directory data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLDAPWriteReplicas KODAttributeTypeLDAPWriteReplicas unsafe.Pointer // KODAttributeTypeLastName is the attribute type of the last name attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLastName KODAttributeTypeLastName unsafe.Pointer // KODAttributeTypeLocalOnlySearchPath is the attribute type used to specify the local-only search path used by a search node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLocalOnlySearchPath KODAttributeTypeLocalOnlySearchPath unsafe.Pointer // KODAttributeTypeLocaleRelay is the attribute type used to specify a relay server for a locale. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLocaleRelay KODAttributeTypeLocaleRelay unsafe.Pointer // KODAttributeTypeLocaleSubnets is the attribute type used to specify the subnets for a locale. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLocaleSubnets KODAttributeTypeLocaleSubnets unsafe.Pointer // KODAttributeTypeLocation is the attribute type of the location attribute, which indicates the domain names a service is available from. Typically found in service record types, such as `kODRecordTypeAFPServer`, `kODRecordTypeLDAPServer`, and `kODRecordTypeWebServer`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeLocation KODAttributeTypeLocation unsafe.Pointer // KODAttributeTypeMCXFlags is the attribute type of the MCX flags attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMCXFlags KODAttributeTypeMCXFlags unsafe.Pointer // KODAttributeTypeMCXSettings is the attribute type of the MCX settings attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMCXSettings KODAttributeTypeMCXSettings unsafe.Pointer // KODAttributeTypeMIME is the attribute type used to store data of a fully qualified MIME type. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMIME KODAttributeTypeMIME unsafe.Pointer // KODAttributeTypeMailAttribute is the attribute type of the mail attribute, which contains mail account configuration data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMailAttribute KODAttributeTypeMailAttribute unsafe.Pointer // KODAttributeTypeMapCoordinates is the attribute type used to store coordinates of a user’s location. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMapCoordinates KODAttributeTypeMapCoordinates unsafe.Pointer // KODAttributeTypeMapGUID is the attribute type of the map GUID attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMapGUID KODAttributeTypeMapGUID unsafe.Pointer // KODAttributeTypeMapURI is the attribute type used to specify the URI of a user’s location. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMapURI KODAttributeTypeMapURI unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMetaAmbiguousName KODAttributeTypeMetaAmbiguousName unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMetaAugmentedAttributes KODAttributeTypeMetaAugmentedAttributes unsafe.Pointer // KODAttributeTypeMetaAutomountMap is the attribute type used to query for records of type `kODRecordTypeAutomount` that are associated with a specific record of type `kODRecordTypeAutomountMap`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMetaAutomountMap KODAttributeTypeMetaAutomountMap unsafe.Pointer // KODAttributeTypeMetaNodeLocation is the attribute type used to retrieve the registered node name with the directory node plug-in. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMetaNodeLocation KODAttributeTypeMetaNodeLocation unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMetaRecordName KODAttributeTypeMetaRecordName unsafe.Pointer // KODAttributeTypeMiddleName is the attribute type of the middle name attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMiddleName KODAttributeTypeMiddleName unsafe.Pointer // KODAttributeTypeMobileNumber is the attribute type used to store a user’s mobile phone information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeMobileNumber KODAttributeTypeMobileNumber unsafe.Pointer // KODAttributeTypeModificationTimestamp is the attribute type of the modification timestamp attribute, which indicates the time the record was last modified. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeModificationTimestamp KODAttributeTypeModificationTimestamp unsafe.Pointer // KODAttributeTypeNFSHomeDirectory is the attribute type of the NFS home directory attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNFSHomeDirectory KODAttributeTypeNFSHomeDirectory unsafe.Pointer // KODAttributeTypeNTDomainComputerAccount is an attribute type used to support Kerberos SMB server services. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNTDomainComputerAccount KODAttributeTypeNTDomainComputerAccount unsafe.Pointer // KODAttributeTypeNamePrefix is the attribute type used to store a user’s title prefix. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNamePrefix KODAttributeTypeNamePrefix unsafe.Pointer // KODAttributeTypeNameSuffix is the attribute type used to specify a user’s title suffix. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNameSuffix KODAttributeTypeNameSuffix unsafe.Pointer // KODAttributeTypeNativeOnly is the attribute type used in requesting only native attribute types in a search. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNativeOnly KODAttributeTypeNativeOnly unsafe.Pointer // KODAttributeTypeNestedGroups is the attribute type used to specify a list of nested group GUID values in a group attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNestedGroups KODAttributeTypeNestedGroups unsafe.Pointer // KODAttributeTypeNetGroupTriplet is the attribute type used to specify a node’s list of subnodes. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNetGroupTriplet KODAttributeTypeNetGroupTriplet unsafe.Pointer // KODAttributeTypeNetGroups is the attribute type used to specify a list of net groups that a user or host record is a member of. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNetGroups KODAttributeTypeNetGroups unsafe.Pointer // KODAttributeTypeNetworkInterfaces is the attribute type used to specify network interfaces. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNetworkInterfaces KODAttributeTypeNetworkInterfaces unsafe.Pointer // KODAttributeTypeNetworkNumber is the attribute type used to specify a network number. Typically found in records of type `kODRecordTypeNetworks`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNetworkNumber KODAttributeTypeNetworkNumber unsafe.Pointer // KODAttributeTypeNickName is the attribute type used to store a user’s nickname. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNickName KODAttributeTypeNickName unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNodeOptions KODAttributeTypeNodeOptions unsafe.Pointer // KODAttributeTypeNodePath is the attribute type used in neighborhood records to specify the node to search while looking up aliases in the neighborhood. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNodePath KODAttributeTypeNodePath unsafe.Pointer // KODAttributeTypeNodeRefCount is the attribute type used to specify the total count of node references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNodeRefCount KODAttributeTypeNodeRefCount unsafe.Pointer // KODAttributeTypeNodeRefs is the attribute type used to store the node references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNodeRefs KODAttributeTypeNodeRefs unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNodeSASLRealm KODAttributeTypeNodeSASLRealm unsafe.Pointer // KODAttributeTypeNote is the attribute type of the last name attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNote KODAttributeTypeNote unsafe.Pointer // KODAttributeTypeNumTableList is the attribute type used to summarize reference table entries as attribute values from the configure node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeNumTableList KODAttributeTypeNumTableList unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOperatingSystem KODAttributeTypeOperatingSystem unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOperatingSystemVersion KODAttributeTypeOperatingSystemVersion unsafe.Pointer // KODAttributeTypeOrganizationInfo is the attribute type used to store a user’s organization information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOrganizationInfo KODAttributeTypeOrganizationInfo unsafe.Pointer // KODAttributeTypeOrganizationName is the attribute type used to store a user’s organization name. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOrganizationName KODAttributeTypeOrganizationName unsafe.Pointer // KODAttributeTypeOriginalHomeDirectory is the attribute type used to store a home directory URL used in local account caching. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOriginalHomeDirectory KODAttributeTypeOriginalHomeDirectory unsafe.Pointer // KODAttributeTypeOriginalNFSHomeDirectory is the attribute type used to store an NFS home directory URL used in local account caching. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOriginalNFSHomeDirectory KODAttributeTypeOriginalNFSHomeDirectory unsafe.Pointer // KODAttributeTypeOriginalNodeName is the attribute type used to store a node name used in local account caching. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOriginalNodeName KODAttributeTypeOriginalNodeName unsafe.Pointer // KODAttributeTypeOwner is the attribute type of the owner attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOwner KODAttributeTypeOwner unsafe.Pointer // KODAttributeTypeOwnerGUID is the attribute type of the owner GUID attribute. Typically found in records of type `kODRecordTypeGroups`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeOwnerGUID KODAttributeTypeOwnerGUID unsafe.Pointer // KODAttributeTypePGPPublicKey is the attribute type used to specify a Pretty Good Privacy public key. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePGPPublicKey KODAttributeTypePGPPublicKey unsafe.Pointer // KODAttributeTypePIDValue is the attribute type used to specify the PID value. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePIDValue KODAttributeTypePIDValue unsafe.Pointer // KODAttributeTypePagerNumber is the attribute type used to store a user’s pager number. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePagerNumber KODAttributeTypePagerNumber unsafe.Pointer // KODAttributeTypeParentLocales is the attribute type for specifying locales of the parent. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeParentLocales KODAttributeTypeParentLocales unsafe.Pointer // KODAttributeTypePassword is the attribute type of the password attribute. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePassword KODAttributeTypePassword unsafe.Pointer // KODAttributeTypePasswordPlus is the attribute type of the attribute that holds marker data to indicate possible authentication redirection. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePasswordPlus KODAttributeTypePasswordPlus unsafe.Pointer // KODAttributeTypePasswordPolicyOptions is the attribute type of the password policy options attribute. Typically found in records of type `kODRecordTypePresetUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePasswordPolicyOptions KODAttributeTypePasswordPolicyOptions unsafe.Pointer // KODAttributeTypePasswordServerList is the attribute type of the password server list attribute, which contains the password server’s replication information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePasswordServerList KODAttributeTypePasswordServerList unsafe.Pointer // KODAttributeTypePasswordServerLocation is the attribute type of the password server location attribute, which specifies the IP address or domain name of the password server associated with a given directory node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePasswordServerLocation KODAttributeTypePasswordServerLocation unsafe.Pointer // KODAttributeTypePhoneContacts is the attribute type used to store a user’s custom phone information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePhoneContacts KODAttributeTypePhoneContacts unsafe.Pointer // KODAttributeTypePhoneNumber is the attribute type used to store a user’s phone number. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePhoneNumber KODAttributeTypePhoneNumber unsafe.Pointer // KODAttributeTypePicture is the attribute type of the picture attribute, which specifies the path of the picture for each user displayed in the login window. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePicture KODAttributeTypePicture unsafe.Pointer // KODAttributeTypePlugInInfo is the attribute type used to specify information about the plug-in that is serving a particular directory node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePlugInInfo KODAttributeTypePlugInInfo unsafe.Pointer // KODAttributeTypePluginIndex is the attribute type used to specify the plug-in index. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePluginIndex KODAttributeTypePluginIndex unsafe.Pointer // KODAttributeTypePort is the attribute type of the port attribute, which indicates the port number a service is available on. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePort KODAttributeTypePort unsafe.Pointer // KODAttributeTypePostalAddress is the attribute type used to store a user’s postal address. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePostalAddress KODAttributeTypePostalAddress unsafe.Pointer // KODAttributeTypePostalAddressContacts is the attribute type used to store a user’s custom postal address information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePostalAddressContacts KODAttributeTypePostalAddressContacts unsafe.Pointer // KODAttributeTypePostalCode is the attribute type used to store a user’s postal code. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePostalCode KODAttributeTypePostalCode unsafe.Pointer // KODAttributeTypePresetUserIsAdmin is the attribute type used to indicate whether users created from a given preset are administrators. Typically found in records of type `kODRecordTypePresetUsers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePresetUserIsAdmin KODAttributeTypePresetUserIsAdmin unsafe.Pointer // KODAttributeTypePrimaryComputerGUID is the attribute type used to define the primary computer of a computer group. Typically found in records of type kODRecordTypeComputerGroups. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrimaryComputerGUID KODAttributeTypePrimaryComputerGUID unsafe.Pointer // KODAttributeTypePrimaryComputerList is the attribute type of the primary computer list attribute, which indicates the computer list a given computer record is associated with. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrimaryComputerList KODAttributeTypePrimaryComputerList unsafe.Pointer // KODAttributeTypePrimaryGroupID is the attribute type used to define a user’s primary group. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrimaryGroupID KODAttributeTypePrimaryGroupID unsafe.Pointer // KODAttributeTypePrimaryLocale is the attribute type for specifying the primary locale. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrimaryLocale KODAttributeTypePrimaryLocale unsafe.Pointer // KODAttributeTypePrimaryNTDomain is an attribute type used to support Kerberos SMB server services. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrimaryNTDomain KODAttributeTypePrimaryNTDomain unsafe.Pointer // KODAttributeTypePrintServiceInfoText is the attribute type used to define a printer’s service info in plaintext. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrintServiceInfoText KODAttributeTypePrintServiceInfoText unsafe.Pointer // KODAttributeTypePrintServiceInfoXML is the attribute type used to define a printer’s service info in XML. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrintServiceInfoXML KODAttributeTypePrintServiceInfoXML unsafe.Pointer // KODAttributeTypePrintServiceUserData is the attribute type used to define a printer’s quota configuration and statistics in XML. Typically found in records of type `kODRecordTypeUsers` or `kODRecordTypePrintServiceUser`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrintServiceUserData KODAttributeTypePrintServiceUserData unsafe.Pointer // KODAttributeTypePrinter1284DeviceID is the attribute type used to define a printer’s IEEE 1284 device ID. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrinter1284DeviceID KODAttributeTypePrinter1284DeviceID unsafe.Pointer // KODAttributeTypePrinterLPRHost is the attribute type used to define a printer’s LPR host. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrinterLPRHost KODAttributeTypePrinterLPRHost unsafe.Pointer // KODAttributeTypePrinterLPRQueue is the attribute type used to define a printer’s LPR queue. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrinterLPRQueue KODAttributeTypePrinterLPRQueue unsafe.Pointer // KODAttributeTypePrinterMakeAndModel is the attribute type used to define a printer’s make and model. Based on the IPP Printing Specification RFC and IETF IPP-LDAP Printer Record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrinterMakeAndModel KODAttributeTypePrinterMakeAndModel unsafe.Pointer // KODAttributeTypePrinterType is the attribute type used to define a printer’s type. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrinterType KODAttributeTypePrinterType unsafe.Pointer // KODAttributeTypePrinterURI is the attribute type used to define a printer’s URI. Based on the IPP Printing Specification RFC and IETF IPP-LDAP Printer Record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrinterURI KODAttributeTypePrinterURI unsafe.Pointer // KODAttributeTypePrinterXRISupported is the attribute type used to define additional URIs supported by a printer. Based on the IPP Printing Specification RFC and IETF IPP-LDAP Printer Record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePrinterXRISupported KODAttributeTypePrinterXRISupported unsafe.Pointer // KODAttributeTypeProcessName is the attribute type used to specify the process name. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeProcessName KODAttributeTypeProcessName unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeProfiles KODAttributeTypeProfiles unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeProfilesTimestamp KODAttributeTypeProfilesTimestamp unsafe.Pointer // KODAttributeTypeProtocolNumber is the attribute type used to specify a protocol number. Typically found in records of type `kODRecordTypeProtocols`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeProtocolNumber KODAttributeTypeProtocolNumber unsafe.Pointer // KODAttributeTypeProtocols is the attribute type used to specify a list of protocols. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeProtocols KODAttributeTypeProtocols unsafe.Pointer // KODAttributeTypePwdAgingPolicy is the attribute type used to store a record’s password aging policy. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypePwdAgingPolicy KODAttributeTypePwdAgingPolicy unsafe.Pointer // KODAttributeTypeRPCNumber is the attribute type used to specify an RPC number. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRPCNumber KODAttributeTypeRPCNumber unsafe.Pointer // KODAttributeTypeReadOnlyNode is the attribute type used to specify a read-only node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeReadOnlyNode KODAttributeTypeReadOnlyNode unsafe.Pointer // KODAttributeTypeRealUserID is the attribute type of the real user ID attribute, which is used by Managed Client. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRealUserID KODAttributeTypeRealUserID unsafe.Pointer // KODAttributeTypeRecRefCount is the attribute type used to specify the total count of record references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRecRefCount KODAttributeTypeRecRefCount unsafe.Pointer // KODAttributeTypeRecRefs is the attribute type used to store the record references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRecRefs KODAttributeTypeRecRefs unsafe.Pointer // KODAttributeTypeRecordName is the attribute type used to specify a list of names for a record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRecordName KODAttributeTypeRecordName unsafe.Pointer // KODAttributeTypeRecordType is the attribute type used to specify the type of a record or a directory node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRecordType KODAttributeTypeRecordType unsafe.Pointer // KODAttributeTypeRelationships is the attribute type used to specify a user’s relationships. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRelationships KODAttributeTypeRelationships unsafe.Pointer // KODAttributeTypeRelativeDNPrefix is the attribute type used to map the first native LDAP attribute type needed for building a relative distinguished name. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeRelativeDNPrefix KODAttributeTypeRelativeDNPrefix unsafe.Pointer // KODAttributeTypeResourceInfo is the attribute type used to specify resource record information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeResourceInfo KODAttributeTypeResourceInfo unsafe.Pointer // KODAttributeTypeResourceType is the attribute type used to specify the type of a resource record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeResourceType KODAttributeTypeResourceType unsafe.Pointer // KODAttributeTypeSMBAcctFlags is the attribute type used as an account control flag. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBAcctFlags KODAttributeTypeSMBAcctFlags unsafe.Pointer // KODAttributeTypeSMBGroupRID is the attribute type used to define PDC SMB interaction with DirectoryService. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBGroupRID KODAttributeTypeSMBGroupRID unsafe.Pointer // KODAttributeTypeSMBHome is the attribute type used to define the UNC address of a Windows home directory mount point. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBHome KODAttributeTypeSMBHome unsafe.Pointer // KODAttributeTypeSMBHomeDrive is the attribute type used to define the drive letter of a Windows home directory mount point. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBHomeDrive KODAttributeTypeSMBHomeDrive unsafe.Pointer // KODAttributeTypeSMBKickoffTime is the attribute type used to define kickoff time in SMB interaction. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBKickoffTime KODAttributeTypeSMBKickoffTime unsafe.Pointer // KODAttributeTypeSMBLogoffTime is the attribute type used to define logoff time in SMB interaction. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBLogoffTime KODAttributeTypeSMBLogoffTime unsafe.Pointer // KODAttributeTypeSMBLogonTime is the attribute type used to define logon time in SMB interaction. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBLogonTime KODAttributeTypeSMBLogonTime unsafe.Pointer // KODAttributeTypeSMBPWDLastSet is an attribute type used in SMB interaction. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBPWDLastSet KODAttributeTypeSMBPWDLastSet unsafe.Pointer // KODAttributeTypeSMBPrimaryGroupSID is the attribute type used to define an SMB primary group’s security ID, which is stored as a string of up to 64 bytes. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBPrimaryGroupSID KODAttributeTypeSMBPrimaryGroupSID unsafe.Pointer // KODAttributeTypeSMBProfilePath is the attribute type used to define desktop management information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBProfilePath KODAttributeTypeSMBProfilePath unsafe.Pointer // KODAttributeTypeSMBRID is an attribute type used in SMB interaction. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBRID KODAttributeTypeSMBRID unsafe.Pointer // KODAttributeTypeSMBSID is the attribute type used to define an SMB security ID, which is stored as a string of up to 64 bytes. Typically found in records of type `kODRecordTypeUsers`, `kODRecordTypeGroups`, and `kODRecordTypeComputers`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBSID KODAttributeTypeSMBSID unsafe.Pointer // KODAttributeTypeSMBScriptPath is the attribute type used to define an SMB login script path. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBScriptPath KODAttributeTypeSMBScriptPath unsafe.Pointer // KODAttributeTypeSMBUserWorkstations is the attribute type used to define a list of workstations a user can log in from. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSMBUserWorkstations KODAttributeTypeSMBUserWorkstations unsafe.Pointer // KODAttributeTypeSchema is the attribute type used to specify a record’s list of attribute types. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSchema KODAttributeTypeSchema unsafe.Pointer // KODAttributeTypeSearchPath is the attribute type used to specify the search path used by a search node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSearchPath KODAttributeTypeSearchPath unsafe.Pointer // KODAttributeTypeSearchPolicy is the attribute type used to specify the search policy used by a search node. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSearchPolicy KODAttributeTypeSearchPolicy unsafe.Pointer // KODAttributeTypeServiceType is the attribute type used to define an SMB login script path. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeServiceType KODAttributeTypeServiceType unsafe.Pointer // KODAttributeTypeServicesLocator is the attribute type used to specify the URI of a record’s calendar. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeServicesLocator KODAttributeTypeServicesLocator unsafe.Pointer // KODAttributeTypeSetupAdvertising is the attribute type used to define the raw service type of a service. For instance, a service record of type `kODRecordTypeWebServer` could have a service of type `http` or `https`. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSetupAdvertising KODAttributeTypeSetupAdvertising unsafe.Pointer // KODAttributeTypeSetupAutoRegister is an attribute type used for automatic population in Setup Assistant. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSetupAutoRegister KODAttributeTypeSetupAutoRegister unsafe.Pointer // KODAttributeTypeSetupLocation is an attribute type used for automatic population in Setup Assistant. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSetupLocation KODAttributeTypeSetupLocation unsafe.Pointer // KODAttributeTypeSetupOccupation is an attribute type used for automatic population in Setup Assistant. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSetupOccupation KODAttributeTypeSetupOccupation unsafe.Pointer // KODAttributeTypeStandardOnly is the attribute type used in requesting only standard attribute types in a search. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeStandardOnly KODAttributeTypeStandardOnly unsafe.Pointer // KODAttributeTypeState is the attribute type used to specify a user’s state or province. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeState KODAttributeTypeState unsafe.Pointer // KODAttributeTypeStreet is the attribute type used to specify a user’s street address. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeStreet KODAttributeTypeStreet unsafe.Pointer // KODAttributeTypeSubNodes is the attribute type used to specify a node’s list of subnodes. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeSubNodes KODAttributeTypeSubNodes unsafe.Pointer // KODAttributeTypeTimePackage is the attribute type used to group a record’s creation, modification, and backup timestamps. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeTimePackage KODAttributeTypeTimePackage unsafe.Pointer // KODAttributeTypeTimeToLive is the attribute type used to specify how long to cache a record’s attribute values. Specified in seconds. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeTimeToLive KODAttributeTypeTimeToLive unsafe.Pointer // KODAttributeTypeTotalRefCount is the attribute type used to specify the total count of references for a process. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeTotalRefCount KODAttributeTypeTotalRefCount unsafe.Pointer // KODAttributeTypeTotalSize is an attribute type used for checksum and accessing metadata. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeTotalSize KODAttributeTypeTotalSize unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeTrustInformation KODAttributeTypeTrustInformation unsafe.Pointer // KODAttributeTypeURL is the attribute type used to specify a list of URLs. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeURL KODAttributeTypeURL unsafe.Pointer // KODAttributeTypeUniqueID is the attribute type used to define a user’s unique 32-bit ID in the legacy manner. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeUniqueID KODAttributeTypeUniqueID unsafe.Pointer // KODAttributeTypeUserCertificate is the attribute type used to store the binary of a user’s certificate. Typically found in user records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeUserCertificate KODAttributeTypeUserCertificate unsafe.Pointer // KODAttributeTypeUserPKCS12Data is the attribute type used to store binary data in PKCS #12 format, including keys and certificates. Typically found in user records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeUserPKCS12Data KODAttributeTypeUserPKCS12Data unsafe.Pointer // KODAttributeTypeUserSMIMECertificate is the attribute type used to store the binary of a user’s SMIME certificate. Typically found in user records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeUserSMIMECertificate KODAttributeTypeUserSMIMECertificate unsafe.Pointer // KODAttributeTypeUserShell is the attribute type used to specify a user’s shell setting. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeUserShell KODAttributeTypeUserShell unsafe.Pointer // KODAttributeTypeVFSDumpFreq is an attribute type used to support mount records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeVFSDumpFreq KODAttributeTypeVFSDumpFreq unsafe.Pointer // KODAttributeTypeVFSLinkDir is an attribute type used to support mount records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeVFSLinkDir KODAttributeTypeVFSLinkDir unsafe.Pointer // KODAttributeTypeVFSOpts is an attribute type used to support mount records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeVFSOpts KODAttributeTypeVFSOpts unsafe.Pointer // KODAttributeTypeVFSPassNo is an attribute type used to support mount records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeVFSPassNo KODAttributeTypeVFSPassNo unsafe.Pointer // KODAttributeTypeVFSType is an attribute type used to support mount records. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeVFSType KODAttributeTypeVFSType unsafe.Pointer // KODAttributeTypeVersion is the attribute type used to specify the version. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeVersion KODAttributeTypeVersion unsafe.Pointer // KODAttributeTypeWeblogURI is the attribute type used to specify the URI of a user’s weblog. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeWeblogURI KODAttributeTypeWeblogURI unsafe.Pointer // KODAttributeTypeXMLPlist is the attribute type used to specify an XML property list. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAttributeTypeXMLPlist KODAttributeTypeXMLPlist unsafe.Pointer // KODRecordTypeAFPServer is the record type of an AFP server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeAFPServer KODRecordTypeAFPServer unsafe.Pointer // KODRecordTypeAliases is the record type of an alias record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeAliases KODRecordTypeAliases unsafe.Pointer // KODRecordTypeAttributeTypes is a record that represents each possible attribute type. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeAttributeTypes KODRecordTypeAttributeTypes unsafe.Pointer // KODRecordTypeAugments is the record type of augmented record data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeAugments KODRecordTypeAugments unsafe.Pointer // KODRecordTypeAutoServerSetup is the record type used to discover automated server setup information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeAutoServerSetup KODRecordTypeAutoServerSetup unsafe.Pointer // KODRecordTypeAutomount is the record type of automount record data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeAutomount KODRecordTypeAutomount unsafe.Pointer // KODRecordTypeAutomountMap is the record type of automount map record data. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeAutomountMap KODRecordTypeAutomountMap unsafe.Pointer // KODRecordTypeBootp is the record type of a record in the local node for storing bootp information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeBootp KODRecordTypeBootp unsafe.Pointer // KODRecordTypeCertificateAuthorities is the record type of a record that contains certificate authority information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeCertificateAuthorities KODRecordTypeCertificateAuthorities unsafe.Pointer // KODRecordTypeComputerGroups is the record type of a computer group record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeComputerGroups KODRecordTypeComputerGroups unsafe.Pointer // KODRecordTypeComputerLists is the record type of a computer list record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeComputerLists KODRecordTypeComputerLists unsafe.Pointer // KODRecordTypeComputers is the record type of a computer record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeComputers KODRecordTypeComputers unsafe.Pointer // KODRecordTypeConfiguration is the record type of a configuration record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeConfiguration KODRecordTypeConfiguration unsafe.Pointer // KODRecordTypeEthernets is the record type of a record in a node storing ethernet information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeEthernets KODRecordTypeEthernets unsafe.Pointer // KODRecordTypeFTPServer is the record type of an FTP server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeFTPServer KODRecordTypeFTPServer unsafe.Pointer // KODRecordTypeFileMakerServers is the record type of a FileMaker server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeFileMakerServers KODRecordTypeFileMakerServers unsafe.Pointer // KODRecordTypeGroups is the record type of a group record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeGroups KODRecordTypeGroups unsafe.Pointer // KODRecordTypeHostServices is the record type of a record in the local node for storing host services information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeHostServices KODRecordTypeHostServices unsafe.Pointer // KODRecordTypeHosts is the record type of a host record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeHosts KODRecordTypeHosts unsafe.Pointer // KODRecordTypeLDAPServer is the record type of an LDAP server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeLDAPServer KODRecordTypeLDAPServer unsafe.Pointer // KODRecordTypeLocations is the record type of a location record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeLocations KODRecordTypeLocations unsafe.Pointer // KODRecordTypeMounts is the record type of a mount record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeMounts KODRecordTypeMounts unsafe.Pointer // KODRecordTypeNFS is the record type of an NFS record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeNFS KODRecordTypeNFS unsafe.Pointer // KODRecordTypeNetDomains is the record type of a record in the local node for storing net domain information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeNetDomains KODRecordTypeNetDomains unsafe.Pointer // KODRecordTypeNetGroups is the record type of a record in the local node for storing net group information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeNetGroups KODRecordTypeNetGroups unsafe.Pointer // KODRecordTypeNetworks is the record type of a network record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeNetworks KODRecordTypeNetworks unsafe.Pointer // KODRecordTypePeople is the record type of a “people” record, used for storing contact information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePeople KODRecordTypePeople unsafe.Pointer // KODRecordTypePresetComputerGroups is the record type used for presets in computer group record creation. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePresetComputerGroups KODRecordTypePresetComputerGroups unsafe.Pointer // KODRecordTypePresetComputerLists is the record type used for presets in computer list record creation. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePresetComputerLists KODRecordTypePresetComputerLists unsafe.Pointer // KODRecordTypePresetComputers is the record type used for presets in computer record creation. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePresetComputers KODRecordTypePresetComputers unsafe.Pointer // KODRecordTypePresetGroups is the record type used for presets in group record creation. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePresetGroups KODRecordTypePresetGroups unsafe.Pointer // KODRecordTypePresetUsers is the record type used for presets in user record creation. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePresetUsers KODRecordTypePresetUsers unsafe.Pointer // KODRecordTypePrintService is the record type of a print service record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePrintService KODRecordTypePrintService unsafe.Pointer // KODRecordTypePrintServiceUser is the record type of a record in the local node for storing a user’s quota usage information. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePrintServiceUser KODRecordTypePrintServiceUser unsafe.Pointer // KODRecordTypePrinters is the record type of a printer record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypePrinters KODRecordTypePrinters unsafe.Pointer // KODRecordTypeProtocols is the record type of a protocol record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeProtocols KODRecordTypeProtocols unsafe.Pointer // KODRecordTypeQTSServer is the record type of a QuickTime streaming server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeQTSServer KODRecordTypeQTSServer unsafe.Pointer // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeQueryInformation KODRecordTypeQueryInformation unsafe.Pointer // KODRecordTypeRPC is the record type of a remote procedure call record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeRPC KODRecordTypeRPC unsafe.Pointer // KODRecordTypeRecordTypes is a record that represents each possible record type. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeRecordTypes KODRecordTypeRecordTypes unsafe.Pointer // KODRecordTypeResources is the record type of a resource used in group services. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeResources KODRecordTypeResources unsafe.Pointer // KODRecordTypeSMBServer is the record type of an SMB server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeSMBServer KODRecordTypeSMBServer unsafe.Pointer // KODRecordTypeServer is the record type of a generic server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeServer KODRecordTypeServer unsafe.Pointer // KODRecordTypeServices is the record type of a directory based service. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeServices KODRecordTypeServices unsafe.Pointer // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeSharePoints KODRecordTypeSharePoints unsafe.Pointer // KODRecordTypeUsers is the record type of a user record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeUsers KODRecordTypeUsers unsafe.Pointer // KODRecordTypeWebServer is the record type of a web server record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODRecordTypeWebServer KODRecordTypeWebServer unsafe.Pointer )
var ( // KODErrorDomainFramework is the error domain used for errors from the Open Directory framework. // // See: https://developer.apple.com/documentation/OpenDirectory/kODErrorDomainFramework KODErrorDomainFramework string // See: https://developer.apple.com/documentation/OpenDirectory/kODModuleConfigOptionConnectionIdleDisconnect KODModuleConfigOptionConnectionIdleDisconnect string // See: https://developer.apple.com/documentation/OpenDirectory/kODModuleConfigOptionConnectionSetupTimeout KODModuleConfigOptionConnectionSetupTimeout string // See: https://developer.apple.com/documentation/OpenDirectory/kODModuleConfigOptionManInTheMiddle KODModuleConfigOptionManInTheMiddle string // See: https://developer.apple.com/documentation/OpenDirectory/kODModuleConfigOptionPacketEncryption KODModuleConfigOptionPacketEncryption string // See: https://developer.apple.com/documentation/OpenDirectory/kODModuleConfigOptionPacketSigning KODModuleConfigOptionPacketSigning string // See: https://developer.apple.com/documentation/OpenDirectory/kODModuleConfigOptionQueryTimeout KODModuleConfigOptionQueryTimeout string // See: https://developer.apple.com/documentation/OpenDirectory/kODNodeOptionsQuerySkippedSubnode KODNodeOptionsQuerySkippedSubnode string // KODSessionProxyAddress is the address to connect to via proxy. The value is of type [CFString]. // // See: https://developer.apple.com/documentation/OpenDirectory/kODSessionProxyAddress KODSessionProxyAddress string // KODSessionProxyPassword is the password to connect with via proxy. The value is of type [CFString]. // // See: https://developer.apple.com/documentation/OpenDirectory/kODSessionProxyPassword KODSessionProxyPassword string // KODSessionProxyPort is the port to connect to via proxy. The value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/OpenDirectory/kODSessionProxyPort KODSessionProxyPort string // KODSessionProxyUsername is the username to connect with via proxy. The value is of type [CFString]. // // See: https://developer.apple.com/documentation/OpenDirectory/kODSessionProxyUsername KODSessionProxyUsername string )
Functions ¶
func ODContextGetTypeID ¶
func ODContextGetTypeID() uint
ODContextGetTypeID returns the type ID for the Open Directory context.
See: https://developer.apple.com/documentation/OpenDirectory/ODContextGetTypeID()
func ODNodeAddAccountPolicy ¶
func ODNodeAddAccountPolicy(node ODNodeRef, policy corefoundation.CFDictionaryRef, category ODPolicyCategoryType, err *corefoundation.CFErrorRef) bool
ODNodeAddAccountPolicy.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeAddAccountPolicy(_:_:_:_:)
func ODNodeCopyAccountPolicies ¶
func ODNodeCopyAccountPolicies(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODNodeCopyAccountPolicies.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopyAccountPolicies(_:_:)
func ODNodeCopyDetails ¶
func ODNodeCopyDetails(node ODNodeRef, keys corefoundation.CFArrayRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODNodeCopyDetails returns a dictionary containing details about a node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopyDetails(_:_:_:)
func ODNodeCopyPolicies
deprecated
func ODNodeCopyPolicies(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODNodeCopyPolicies.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopyPolicies(_:_:)
func ODNodeCopySubnodeNames ¶
func ODNodeCopySubnodeNames(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
ODNodeCopySubnodeNames returns the names of subnodes for a given node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopySubnodeNames(_:_:)
func ODNodeCopySupportedAttributes ¶
func ODNodeCopySupportedAttributes(node ODNodeRef, recordType unsafe.Pointer, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
ODNodeCopySupportedAttributes returns an array of attribute types supported by a given node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopySupportedAttributes(_:_:_:)
func ODNodeCopySupportedPolicies
deprecated
func ODNodeCopySupportedPolicies(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODNodeCopySupportedPolicies.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopySupportedPolicies(_:_:)
func ODNodeCopySupportedRecordTypes ¶
func ODNodeCopySupportedRecordTypes(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
ODNodeCopySupportedRecordTypes returns an array of the record types supported by a given node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopySupportedRecordTypes(_:_:)
func ODNodeCopyUnreachableSubnodeNames ¶
func ODNodeCopyUnreachableSubnodeNames(node ODNodeRef, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
ODNodeCopyUnreachableSubnodeNames returns an array of the subnodes of a given node that are currently unreachable.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopyUnreachableSubnodeNames(_:_:)
func ODNodeCustomCall ¶
func ODNodeCustomCall(node ODNodeRef, customCode int, data corefoundation.CFDataRef, err *corefoundation.CFErrorRef) corefoundation.CFDataRef
ODNodeCustomCall returns the result of a custom call to a node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCustomCall(_:_:_:_:)
func ODNodeCustomFunction ¶
func ODNodeCustomFunction(node ODNodeRef, function corefoundation.CFStringRef, payload corefoundation.CFTypeRef, err *corefoundation.CFErrorRef) corefoundation.CFTypeRef
ODNodeCustomFunction.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCustomFunction(_:_:_:_:)
func ODNodeGetName ¶
func ODNodeGetName(node ODNodeRef) corefoundation.CFStringRef
ODNodeGetName returns the name of a node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeGetName(_:)
func ODNodeGetTypeID ¶
func ODNodeGetTypeID() uint
ODNodeGetTypeID returns the type ID for an Open Directory node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeGetTypeID()
func ODNodePasswordContentCheck ¶
func ODNodePasswordContentCheck(node ODNodeRef, password corefoundation.CFStringRef, recordName corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODNodePasswordContentCheck.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodePasswordContentCheck(_:_:_:_:)
func ODNodeRemoveAccountPolicy ¶
func ODNodeRemoveAccountPolicy(node ODNodeRef, policy corefoundation.CFDictionaryRef, category ODPolicyCategoryType, err *corefoundation.CFErrorRef) bool
ODNodeRemoveAccountPolicy.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeRemoveAccountPolicy(_:_:_:_:)
func ODNodeRemovePolicy
deprecated
func ODNodeRemovePolicy(node ODNodeRef, policyType ODPolicyType, err *corefoundation.CFErrorRef) bool
ODNodeRemovePolicy.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeRemovePolicy(_:_:_:)
func ODNodeSetAccountPolicies ¶
func ODNodeSetAccountPolicies(node ODNodeRef, policies corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) bool
ODNodeSetAccountPolicies.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeSetAccountPolicies(_:_:_:)
func ODNodeSetCredentials ¶
func ODNodeSetCredentials(node ODNodeRef, recordType unsafe.Pointer, recordName corefoundation.CFStringRef, password corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODNodeSetCredentials sets credentials for interacting with a node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeSetCredentials(_:_:_:_:_:)
func ODNodeSetCredentialsExtended ¶
func ODNodeSetCredentialsExtended(node ODNodeRef, recordType unsafe.Pointer, authType ODAuthenticationType, authItems corefoundation.CFArrayRef, outAuthItems *corefoundation.CFArrayRef, outContext *ODContextRef, err *corefoundation.CFErrorRef) bool
ODNodeSetCredentialsExtended sets credentials for interacting with a node using a specified authentication method.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeSetCredentialsExtended(_:_:_:_:_:_:_:)
func ODNodeSetCredentialsUsingKerberosCache
deprecated
func ODNodeSetCredentialsUsingKerberosCache(node ODNodeRef, cacheName corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODNodeSetCredentialsUsingKerberosCache sets credentials for interacting with a node with the Kerberos cache.
Deprecated: Deprecated since macOS 10.7.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeSetCredentialsUsingKerberosCache
func ODNodeSetPolicies
deprecated
func ODNodeSetPolicies(node ODNodeRef, policies corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) bool
ODNodeSetPolicies.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeSetPolicies(_:_:_:)
func ODNodeSetPolicy
deprecated
func ODNodeSetPolicy(node ODNodeRef, policyType ODPolicyType, value corefoundation.CFTypeRef, err *corefoundation.CFErrorRef) bool
ODNodeSetPolicy.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeSetPolicy(_:_:_:_:)
func ODQueryCopyResults ¶
func ODQueryCopyResults(query ODQueryRef, allowPartialResults bool, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
ODQueryCopyResults returns results from a query synchronously.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryCopyResults(_:_:_:)
func ODQueryGetTypeID ¶
func ODQueryGetTypeID() uint
ODQueryGetTypeID returns the type ID for an Open Directory query.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryGetTypeID()
func ODQueryScheduleWithRunLoop ¶
func ODQueryScheduleWithRunLoop(query ODQueryRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef)
ODQueryScheduleWithRunLoop retrieves results from a query asynchronously by scheduling the query in a run loop.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryScheduleWithRunLoop(_:_:_:)
func ODQuerySetCallback ¶
func ODQuerySetCallback(query ODQueryRef, callback ODQueryCallback, userInfo unsafe.Pointer)
ODQuerySetCallback sets the callback for an asynchronous query.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuerySetCallback(_:_:_:)
func ODQuerySetDispatchQueue ¶
func ODQuerySetDispatchQueue(query ODQueryRef, queue dispatch.Queue)
ODQuerySetDispatchQueue retrieves results from a query asynchronously by adding the query to a dispatch queue.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuerySetDispatchQueue(_:_:)
func ODQuerySynchronize ¶
func ODQuerySynchronize(query ODQueryRef)
ODQuerySynchronize restarts a query, disposing of any results it has obtained.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuerySynchronize(_:)
func ODQueryUnscheduleFromRunLoop ¶
func ODQueryUnscheduleFromRunLoop(query ODQueryRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef)
ODQueryUnscheduleFromRunLoop removes a query from a specified run loop.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryUnscheduleFromRunLoop(_:_:_:)
func ODRecordAddAccountPolicy ¶
func ODRecordAddAccountPolicy(record ODRecordRef, policy corefoundation.CFDictionaryRef, category ODPolicyCategoryType, err *corefoundation.CFErrorRef) bool
ODRecordAddAccountPolicy.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordAddAccountPolicy(_:_:_:_:)
func ODRecordAddMember ¶
func ODRecordAddMember(group ODRecordRef, member ODRecordRef, err *corefoundation.CFErrorRef) bool
ODRecordAddMember adds a record as a member of a group record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordAddMember(_:_:_:)
func ODRecordAddValue ¶
func ODRecordAddValue(record ODRecordRef, attribute unsafe.Pointer, value corefoundation.CFTypeRef, err *corefoundation.CFErrorRef) bool
ODRecordAddValue adds a value to an attribute of a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordAddValue(_:_:_:_:)
func ODRecordAuthenticationAllowed ¶
func ODRecordAuthenticationAllowed(record ODRecordRef, err *corefoundation.CFErrorRef) bool
ODRecordAuthenticationAllowed.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordAuthenticationAllowed(_:_:)
func ODRecordChangePassword ¶
func ODRecordChangePassword(record ODRecordRef, oldPassword corefoundation.CFStringRef, newPassword corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODRecordChangePassword changes the password of a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordChangePassword(_:_:_:_:)
func ODRecordContainsMember ¶
func ODRecordContainsMember(group ODRecordRef, member ODRecordRef, err *corefoundation.CFErrorRef) bool
ODRecordContainsMember returns whether a group record contains a given record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordContainsMember(_:_:_:)
func ODRecordCopyAccountPolicies ¶
func ODRecordCopyAccountPolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODRecordCopyAccountPolicies.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordCopyAccountPolicies(_:_:)
func ODRecordCopyDetails ¶
func ODRecordCopyDetails(record ODRecordRef, attributes corefoundation.CFArrayRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODRecordCopyDetails returns the values of a record’s attributes.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordCopyDetails(_:_:_:)
func ODRecordCopyEffectivePolicies
deprecated
func ODRecordCopyEffectivePolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODRecordCopyEffectivePolicies.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordCopyEffectivePolicies(_:_:)
func ODRecordCopyPasswordPolicy
deprecated
func ODRecordCopyPasswordPolicy(allocator corefoundation.CFAllocatorRef, record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODRecordCopyPasswordPolicy returns the password policies of a record.
Deprecated: Deprecated since macOS 10.9.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordCopyPasswordPolicy
func ODRecordCopyPolicies
deprecated
func ODRecordCopyPolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODRecordCopyPolicies.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordCopyPolicies(_:_:)
func ODRecordCopySupportedPolicies
deprecated
func ODRecordCopySupportedPolicies(record ODRecordRef, err *corefoundation.CFErrorRef) corefoundation.CFDictionaryRef
ODRecordCopySupportedPolicies.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordCopySupportedPolicies(_:_:)
func ODRecordCopyValues ¶
func ODRecordCopyValues(record ODRecordRef, attribute unsafe.Pointer, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
ODRecordCopyValues returns the value of a single attribute of a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordCopyValues(_:_:_:)
func ODRecordDelete ¶
func ODRecordDelete(record ODRecordRef, err *corefoundation.CFErrorRef) bool
ODRecordDelete deletes a record from a node and invalidates the record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordDelete(_:_:)
func ODRecordGetRecordName ¶
func ODRecordGetRecordName(record ODRecordRef) corefoundation.CFStringRef
ODRecordGetRecordName returns the official name of a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordGetRecordName(_:)
func ODRecordGetRecordType ¶
func ODRecordGetRecordType(record ODRecordRef) corefoundation.CFStringRef
ODRecordGetRecordType returns the type of a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordGetRecordType(_:)
func ODRecordGetTypeID ¶
func ODRecordGetTypeID() uint
ODRecordGetTypeID returns the type ID for a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordGetTypeID()
func ODRecordPasswordChangeAllowed ¶
func ODRecordPasswordChangeAllowed(record ODRecordRef, newPassword corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODRecordPasswordChangeAllowed.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordPasswordChangeAllowed(_:_:_:)
func ODRecordRemoveAccountPolicy ¶
func ODRecordRemoveAccountPolicy(record ODRecordRef, policy corefoundation.CFDictionaryRef, category ODPolicyCategoryType, err *corefoundation.CFErrorRef) bool
ODRecordRemoveAccountPolicy.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordRemoveAccountPolicy(_:_:_:_:)
func ODRecordRemoveMember ¶
func ODRecordRemoveMember(group ODRecordRef, member ODRecordRef, err *corefoundation.CFErrorRef) bool
ODRecordRemoveMember removes a record as a member from a specified group record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordRemoveMember(_:_:_:)
func ODRecordRemovePolicy
deprecated
func ODRecordRemovePolicy(record ODRecordRef, policy ODPolicyType, err *corefoundation.CFErrorRef) bool
ODRecordRemovePolicy.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordRemovePolicy(_:_:_:)
func ODRecordRemoveValue ¶
func ODRecordRemoveValue(record ODRecordRef, attribute unsafe.Pointer, value corefoundation.CFTypeRef, err *corefoundation.CFErrorRef) bool
ODRecordRemoveValue removes a value from a record’s attribute.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordRemoveValue(_:_:_:_:)
func ODRecordSecondsUntilAuthenticationsExpire ¶
func ODRecordSecondsUntilAuthenticationsExpire(record ODRecordRef) int64
ODRecordSecondsUntilAuthenticationsExpire.
func ODRecordSecondsUntilPasswordExpires ¶
func ODRecordSecondsUntilPasswordExpires(record ODRecordRef) int64
ODRecordSecondsUntilPasswordExpires.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSecondsUntilPasswordExpires(_:)
func ODRecordSetAccountPolicies ¶
func ODRecordSetAccountPolicies(record ODRecordRef, policies corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) bool
ODRecordSetAccountPolicies.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSetAccountPolicies(_:_:_:)
func ODRecordSetNodeCredentials ¶
func ODRecordSetNodeCredentials(record ODRecordRef, username corefoundation.CFStringRef, password corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODRecordSetNodeCredentials sets node authentication credentials for a given record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSetNodeCredentials(_:_:_:_:)
func ODRecordSetNodeCredentialsExtended ¶
func ODRecordSetNodeCredentialsExtended(record ODRecordRef, recordType unsafe.Pointer, authType ODAuthenticationType, authItems corefoundation.CFArrayRef, outAuthItems *corefoundation.CFArrayRef, outContext *ODContextRef, err *corefoundation.CFErrorRef) bool
ODRecordSetNodeCredentialsExtended sets node authentication credentials for a record using a specified authentication method.
func ODRecordSetNodeCredentialsUsingKerberosCache
deprecated
func ODRecordSetNodeCredentialsUsingKerberosCache(record ODRecordRef, cacheName corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODRecordSetNodeCredentialsUsingKerberosCache sets credentials for interacting with a record’s node with the Kerberos cache.
Deprecated: Deprecated since macOS 10.7.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSetNodeCredentialsUsingKerberosCache
func ODRecordSetPolicies
deprecated
func ODRecordSetPolicies(record ODRecordRef, policies corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) bool
ODRecordSetPolicies.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSetPolicies(_:_:_:)
func ODRecordSetPolicy
deprecated
func ODRecordSetPolicy(record ODRecordRef, policy ODPolicyType, value corefoundation.CFTypeRef, err *corefoundation.CFErrorRef) bool
ODRecordSetPolicy.
Deprecated: Deprecated since macOS 10.10.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSetPolicy(_:_:_:_:)
func ODRecordSetValue ¶
func ODRecordSetValue(record ODRecordRef, attribute unsafe.Pointer, valueOrValues corefoundation.CFTypeRef, err *corefoundation.CFErrorRef) bool
ODRecordSetValue sets one or more attribute values of a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSetValue(_:_:_:_:)
func ODRecordSynchronize ¶
func ODRecordSynchronize(record ODRecordRef, err *corefoundation.CFErrorRef) bool
ODRecordSynchronize synchronizes a record with the directory to get current data and commit changes.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSynchronize(_:_:)
func ODRecordVerifyPassword ¶
func ODRecordVerifyPassword(record ODRecordRef, password corefoundation.CFStringRef, err *corefoundation.CFErrorRef) bool
ODRecordVerifyPassword verifies a given password for a record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordVerifyPassword(_:_:_:)
func ODRecordVerifyPasswordExtended ¶
func ODRecordVerifyPasswordExtended(record ODRecordRef, authType ODAuthenticationType, authItems corefoundation.CFArrayRef, outAuthItems *corefoundation.CFArrayRef, outContext *ODContextRef, err *corefoundation.CFErrorRef) bool
ODRecordVerifyPasswordExtended verifies a given password for a record given a specified authentication method.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordVerifyPasswordExtended(_:_:_:_:_:_:)
func ODRecordWillAuthenticationsExpire ¶
func ODRecordWillAuthenticationsExpire(record ODRecordRef, willExpireIn uint64) bool
ODRecordWillAuthenticationsExpire.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordWillAuthenticationsExpire(_:_:)
func ODRecordWillPasswordExpire ¶
func ODRecordWillPasswordExpire(record ODRecordRef, willExpireIn uint64) bool
ODRecordWillPasswordExpire.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordWillPasswordExpire(_:_:)
func ODSessionCopyNodeNames ¶
func ODSessionCopyNodeNames(allocator corefoundation.CFAllocatorRef, session ODSessionRef, err *corefoundation.CFErrorRef) corefoundation.CFArrayRef
ODSessionCopyNodeNames returns the names of nodes registered in a given session.
See: https://developer.apple.com/documentation/OpenDirectory/ODSessionCopyNodeNames(_:_:_:)
func ODSessionGetTypeID ¶
func ODSessionGetTypeID() uint
ODSessionGetTypeID returns the type ID for a session.
See: https://developer.apple.com/documentation/OpenDirectory/ODSessionGetTypeID()
Types ¶
type IODAttributeMap ¶
type IODAttributeMap interface {
objectivec.IObject
CustomAttributes() foundation.INSArray
SetCustomAttributes(value foundation.INSArray)
CustomQueryFunction() string
SetCustomQueryFunction(value string)
CustomTranslationFunction() string
SetCustomTranslationFunction(value string)
Value() string
SetValue(value string)
SetStaticValue(staticValue string)
SetVariableSubstitution(variableSubstitution string)
}
An interface definition for the ODAttributeMap class.
Instance Properties ¶
- IODAttributeMap.CustomAttributes
- IODAttributeMap.SetCustomAttributes
- IODAttributeMap.CustomQueryFunction
- IODAttributeMap.SetCustomQueryFunction
- IODAttributeMap.CustomTranslationFunction
- IODAttributeMap.SetCustomTranslationFunction
- IODAttributeMap.Value
- IODAttributeMap.SetValue
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap
type IODConfiguration ¶
type IODConfiguration interface {
objectivec.IObject
AuthenticationModuleEntries() foundation.INSArray
SetAuthenticationModuleEntries(value foundation.INSArray)
Comment() string
SetComment(value string)
ConnectionIdleTimeoutInSeconds() int
SetConnectionIdleTimeoutInSeconds(value int)
ConnectionSetupTimeoutInSeconds() int
SetConnectionSetupTimeoutInSeconds(value int)
DefaultMappings() IODMappings
SetDefaultMappings(value IODMappings)
DefaultModuleEntries() foundation.INSArray
SetDefaultModuleEntries(value foundation.INSArray)
DiscoveryModuleEntries() foundation.INSArray
SetDiscoveryModuleEntries(value foundation.INSArray)
GeneralModuleEntries() foundation.INSArray
SetGeneralModuleEntries(value foundation.INSArray)
HideRegistration() bool
SetHideRegistration(value bool)
ManInTheMiddleProtection() bool
SetManInTheMiddleProtection(value bool)
NodeName() string
SetNodeName(value string)
PacketEncryption() int
SetPacketEncryption(value int)
PacketSigning() int
SetPacketSigning(value int)
PreferredDestinationHostName() string
SetPreferredDestinationHostName(value string)
PreferredDestinationHostPort() uint16
SetPreferredDestinationHostPort(value uint16)
QueryTimeoutInSeconds() int
SetQueryTimeoutInSeconds(value int)
TemplateName() string
SetTemplateName(value string)
TrustAccount() string
TrustKerberosPrincipal() string
TrustMetaAccount() string
TrustType() string
TrustUsesKerberosKeytab() bool
TrustUsesMutualAuthentication() bool
TrustUsesSystemKeychain() bool
VirtualSubnodes() foundation.INSArray
SetVirtualSubnodes(value foundation.INSArray)
AddTrustTypeTrustAccountTrustPasswordUsernamePasswordJoinExistingError(trustType string, account string, accountPassword string, username string, password string, join bool) (bool, error)
RemoveTrustUsingUsernamePasswordDeleteTrustAccountError(username string, password string, deleteAccount bool) (bool, error)
SaveUsingAuthorizationError(authorization objectivec.IObject) (bool, error)
}
An interface definition for the ODConfiguration class.
Instance Properties ¶
- IODConfiguration.AuthenticationModuleEntries
- IODConfiguration.SetAuthenticationModuleEntries
- IODConfiguration.Comment
- IODConfiguration.SetComment
- IODConfiguration.ConnectionIdleTimeoutInSeconds
- IODConfiguration.SetConnectionIdleTimeoutInSeconds
- IODConfiguration.ConnectionSetupTimeoutInSeconds
- IODConfiguration.SetConnectionSetupTimeoutInSeconds
- IODConfiguration.DefaultMappings
- IODConfiguration.SetDefaultMappings
- IODConfiguration.DefaultModuleEntries
- IODConfiguration.SetDefaultModuleEntries
- IODConfiguration.DiscoveryModuleEntries
- IODConfiguration.SetDiscoveryModuleEntries
- IODConfiguration.GeneralModuleEntries
- IODConfiguration.SetGeneralModuleEntries
- IODConfiguration.HideRegistration
- IODConfiguration.SetHideRegistration
- IODConfiguration.ManInTheMiddleProtection
- IODConfiguration.SetManInTheMiddleProtection
- IODConfiguration.NodeName
- IODConfiguration.SetNodeName
- IODConfiguration.PacketEncryption
- IODConfiguration.SetPacketEncryption
- IODConfiguration.PacketSigning
- IODConfiguration.SetPacketSigning
- IODConfiguration.PreferredDestinationHostName
- IODConfiguration.SetPreferredDestinationHostName
- IODConfiguration.PreferredDestinationHostPort
- IODConfiguration.SetPreferredDestinationHostPort
- IODConfiguration.QueryTimeoutInSeconds
- IODConfiguration.SetQueryTimeoutInSeconds
- IODConfiguration.TemplateName
- IODConfiguration.SetTemplateName
- IODConfiguration.TrustAccount
- IODConfiguration.TrustKerberosPrincipal
- IODConfiguration.TrustMetaAccount
- IODConfiguration.TrustType
- IODConfiguration.TrustUsesKerberosKeytab
- IODConfiguration.TrustUsesMutualAuthentication
- IODConfiguration.TrustUsesSystemKeychain
- IODConfiguration.VirtualSubnodes
- IODConfiguration.SetVirtualSubnodes
Instance Methods ¶
- IODConfiguration.AddTrustTypeTrustAccountTrustPasswordUsernamePasswordJoinExistingError
- IODConfiguration.RemoveTrustUsingUsernamePasswordDeleteTrustAccountError
- IODConfiguration.SaveUsingAuthorizationError
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration
type IODMappings ¶
type IODMappings interface {
objectivec.IObject
Comment() string
SetComment(value string)
Function() string
SetFunction(value string)
FunctionAttributes() foundation.INSArray
SetFunctionAttributes(value foundation.INSArray)
Identifier() string
SetIdentifier(value string)
RecordTypes() foundation.INSArray
TemplateName() string
SetTemplateName(value string)
RecordMapForStandardRecordType(stdType string) IODRecordMap
SetRecordMapForStandardRecordType(map_ IODRecordMap, stdType string)
}
An interface definition for the ODMappings class.
Instance Properties ¶
- IODMappings.Comment
- IODMappings.SetComment
- IODMappings.Function
- IODMappings.SetFunction
- IODMappings.FunctionAttributes
- IODMappings.SetFunctionAttributes
- IODMappings.Identifier
- IODMappings.SetIdentifier
- IODMappings.RecordTypes
- IODMappings.TemplateName
- IODMappings.SetTemplateName
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings
type IODModuleEntry ¶
type IODModuleEntry interface {
objectivec.IObject
Mappings() IODMappings
SetMappings(value IODMappings)
Name() string
SetName(value string)
SupportedOptions() foundation.INSArray
UuidString() string
SetUuidString(value string)
XpcServiceName() string
SetXpcServiceName(value string)
Option(optionName string) objectivec.IObject
SetOptionValue(optionName string, value objectivec.IObject)
}
An interface definition for the ODModuleEntry class.
Instance Properties ¶
- IODModuleEntry.Mappings
- IODModuleEntry.SetMappings
- IODModuleEntry.Name
- IODModuleEntry.SetName
- IODModuleEntry.SupportedOptions
- IODModuleEntry.UuidString
- IODModuleEntry.SetUuidString
- IODModuleEntry.XpcServiceName
- IODModuleEntry.SetXpcServiceName
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry
type IODNode ¶
type IODNode interface {
objectivec.IObject
// Creates a node object with a specified session and name.
InitWithSessionNameError(inSession IODSession, inName string) (ODNode, error)
// Creates a node object with a specified session and type.
InitWithSessionTypeError(inSession IODSession, inType ODNodeType) (ODNode, error)
// Returns the result of a custom call to the node.
CustomCallSendDataError(inCustomCode int, inSendData foundation.NSData) (foundation.NSData, error)
// Returns a dictionary containing details about a node.
NodeDetailsForKeysError(inKeys foundation.INSArray) (foundation.INSDictionary, error)
// The node’s name.
NodeName() string
// Returns the names of subnodes for the node.
SubnodeNamesAndReturnError() (foundation.INSArray, error)
// Returns an array of the subnodes of a given node that are currently unreachable.
UnreachableSubnodeNamesAndReturnError() (foundation.INSArray, error)
// Sets credentials for interacting with the node.
SetCredentialsWithRecordTypeRecordNamePasswordError(inRecordType unsafe.Pointer, inRecordName string, inPassword string) (bool, error)
// Creates a record in a specified node with specified properties.
CreateRecordWithRecordTypeNameAttributesError(inRecordType unsafe.Pointer, inRecordName string, inAttributes foundation.INSDictionary) (IODRecord, error)
// Returns a record from the node with a specified type and name.
RecordWithRecordTypeNameAttributesError(inRecordType unsafe.Pointer, inRecordName string, inAttributes objectivec.IObject) (IODRecord, error)
// Returns an array of attribute types supported by the node’s records.
SupportedAttributesForRecordTypeError(inRecordType unsafe.Pointer) (foundation.INSArray, error)
// Returns an array of the record types supported by the node.
SupportedRecordTypesAndReturnError() (foundation.INSArray, error)
Configuration() IODConfiguration
AccountPoliciesAndReturnError() (foundation.INSDictionary, error)
AddAccountPolicyToCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
CustomFunctionPayloadError(function string, payload objectivec.IObject) (objectivec.IObject, error)
PasswordContentCheckForRecordNameError(password string, recordName string) (bool, error)
RemoveAccountPolicyFromCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
SetAccountPoliciesError(policies foundation.INSDictionary) (bool, error)
}
An interface definition for the ODNode class.
Creating and Initializing a Node ¶
- IODNode.InitWithSessionNameError: Creates a node object with a specified session and name.
- IODNode.InitWithSessionTypeError: Creates a node object with a specified session and type.
Querying a Node ¶
- IODNode.CustomCallSendDataError: Returns the result of a custom call to the node.
- IODNode.NodeDetailsForKeysError: Returns a dictionary containing details about a node.
- IODNode.NodeName: The node’s name.
- IODNode.SubnodeNamesAndReturnError: Returns the names of subnodes for the node.
- IODNode.UnreachableSubnodeNamesAndReturnError: Returns an array of the subnodes of a given node that are currently unreachable.
Setting Node Credentials ¶
- IODNode.SetCredentialsWithRecordTypeRecordNamePasswordError: Sets credentials for interacting with the node.
Managing Node Records ¶
- IODNode.CreateRecordWithRecordTypeNameAttributesError: Creates a record in a specified node with specified properties.
- IODNode.RecordWithRecordTypeNameAttributesError: Returns a record from the node with a specified type and name.
- IODNode.SupportedAttributesForRecordTypeError: Returns an array of attribute types supported by the node’s records.
- IODNode.SupportedRecordTypesAndReturnError: Returns an array of the record types supported by the node.
Instance Properties ¶
Instance Methods ¶
- IODNode.AccountPoliciesAndReturnError
- IODNode.AddAccountPolicyToCategoryError
- IODNode.CustomFunctionPayloadError
- IODNode.PasswordContentCheckForRecordNameError
- IODNode.RemoveAccountPolicyFromCategoryError
- IODNode.SetAccountPoliciesError
See: https://developer.apple.com/documentation/OpenDirectory/ODNode
type IODQuery ¶
type IODQuery interface {
objectivec.IObject
// Creates a query object with provided parameters.
InitWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError(inNode IODNode, inRecordTypeOrList objectivec.IObject, inAttribute unsafe.Pointer, inMatchType ODMatchType, inQueryValueOrList objectivec.IObject, inReturnAttributeOrList objectivec.IObject, inMaximumResults int) (ODQuery, error)
// The query’s delegate.
Delegate() ODQueryDelegate
SetDelegate(value ODQueryDelegate)
// The queue on which asynchronous results are delivered to the delegate.
OperationQueue() foundation.OperationQueue
SetOperationQueue(value foundation.OperationQueue)
// Retrieves results from a query asynchronously by scheduling the query in a run loop.
ScheduleInRunLoopForMode(inRunLoop foundation.NSRunLoop, inMode string)
// Removes the query from a specified run loop.
RemoveFromRunLoopForMode(inRunLoop foundation.NSRunLoop, inMode string)
// Restarts a query, disposing of any results it has obtained.
Synchronize()
// Returns results from a query synchronously.
ResultsAllowingPartialError(inAllowPartialResults bool) (foundation.INSArray, error)
}
An interface definition for the ODQuery class.
Creating and Initializing a Query ¶
- IODQuery.InitWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError: Creates a query object with provided parameters.
Managing Asynchronous Queries ¶
- IODQuery.Delegate: The query’s delegate.
- IODQuery.SetDelegate
- IODQuery.OperationQueue: The queue on which asynchronous results are delivered to the delegate.
- IODQuery.SetOperationQueue
- IODQuery.ScheduleInRunLoopForMode: Retrieves results from a query asynchronously by scheduling the query in a run loop.
- IODQuery.RemoveFromRunLoopForMode: Removes the query from a specified run loop.
- IODQuery.Synchronize: Restarts a query, disposing of any results it has obtained.
Managing Synchronous Queries ¶
- IODQuery.ResultsAllowingPartialError: Returns results from a query synchronously.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery
type IODRecord ¶
type IODRecord interface {
objectivec.IObject
// Changes the record’s password.
ChangePasswordToPasswordError(oldPassword string, newPassword string) (bool, error)
// Sets credentials for the record’s node.
SetNodeCredentialsPasswordError(inUsername string, inPassword string) (bool, error)
// Verifies the password for interaction with the record.
VerifyPasswordError(inPassword string) (bool, error)
// Adds a member record to this group record.
AddMemberRecordError(inRecord IODRecord) (bool, error)
// Determines whether a given record is a member of this group record.
IsMemberRecordError(inRecord IODRecord) (bool, error)
// Removes a record as a member of this group record.
RemoveMemberRecordError(inRecord IODRecord) (bool, error)
// Adds a value to an attribute of the record.
AddValueToAttributeError(inValue objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
// Returns a dictionary of attributes with their respective values.
RecordDetailsForAttributesError(inAttributes foundation.INSArray) (foundation.INSDictionary, error)
// The official name of the record.
RecordName() string
// The record’s type.
RecordType() string
// Removes all values from an attribute of the record.
RemoveValuesForAttributeError(inAttribute unsafe.Pointer) (bool, error)
// Removes a value from an attribute of the record.
RemoveValueFromAttributeError(inValue objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
// Sets the values of an attribute of the record.
SetValueForAttributeError(inValueOrValues objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
// Synchronizes the record from the directory to get current data and commit changes.
SynchronizeAndReturnError() (bool, error)
// Returns the values of an attribute of the record.
ValuesForAttributeError(inAttribute unsafe.Pointer) (foundation.INSArray, error)
// Deletes the record from its node and invalidates it.
DeleteRecordAndReturnError() (bool, error)
SecondsUntilAuthenticationsExpire() int64
SecondsUntilPasswordExpires() int64
AccountPoliciesAndReturnError() (foundation.INSDictionary, error)
AddAccountPolicyToCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
AuthenticationAllowedAndReturnError() (bool, error)
PasswordChangeAllowedError(newPassword string) (bool, error)
RemoveAccountPolicyFromCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
SetAccountPoliciesError(policies foundation.INSDictionary) (bool, error)
WillAuthenticationsExpire(willExpireIn uint64) bool
WillPasswordExpire(willExpireIn uint64) bool
}
An interface definition for the ODRecord class.
Managing Authentication ¶
- IODRecord.ChangePasswordToPasswordError: Changes the record’s password.
- IODRecord.SetNodeCredentialsPasswordError: Sets credentials for the record’s node.
- IODRecord.VerifyPasswordError: Verifies the password for interaction with the record.
Managing Group Records ¶
- IODRecord.AddMemberRecordError: Adds a member record to this group record.
- IODRecord.IsMemberRecordError: Determines whether a given record is a member of this group record.
- IODRecord.RemoveMemberRecordError: Removes a record as a member of this group record.
Managing Record Attributes ¶
- IODRecord.AddValueToAttributeError: Adds a value to an attribute of the record.
- IODRecord.RecordDetailsForAttributesError: Returns a dictionary of attributes with their respective values.
- IODRecord.RecordName: The official name of the record.
- IODRecord.RecordType: The record’s type.
- IODRecord.RemoveValuesForAttributeError: Removes all values from an attribute of the record.
- IODRecord.RemoveValueFromAttributeError: Removes a value from an attribute of the record.
- IODRecord.SetValueForAttributeError: Sets the values of an attribute of the record.
- IODRecord.SynchronizeAndReturnError: Synchronizes the record from the directory to get current data and commit changes.
- IODRecord.ValuesForAttributeError: Returns the values of an attribute of the record.
Deleting a Record ¶
- IODRecord.DeleteRecordAndReturnError: Deletes the record from its node and invalidates it.
Instance Properties ¶
Instance Methods ¶
- IODRecord.AccountPoliciesAndReturnError
- IODRecord.AddAccountPolicyToCategoryError
- IODRecord.AuthenticationAllowedAndReturnError
- IODRecord.PasswordChangeAllowedError
- IODRecord.RemoveAccountPolicyFromCategoryError
- IODRecord.SetAccountPoliciesError
- IODRecord.WillAuthenticationsExpire
- IODRecord.WillPasswordExpire
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord
type IODRecordMap ¶
type IODRecordMap interface {
objectivec.IObject
Attributes() foundation.INSDictionary
Native() string
SetNative(value string)
OdPredicate() foundation.INSDictionary
SetOdPredicate(value foundation.INSDictionary)
StandardAttributeTypes() foundation.INSArray
AttributeMapForStandardAttribute(standardAttribute string) IODAttributeMap
SetAttributeMapForStandardAttribute(attributeMap IODAttributeMap, standardAttribute string)
}
An interface definition for the ODRecordMap class.
Instance Properties ¶
- IODRecordMap.Attributes
- IODRecordMap.Native
- IODRecordMap.SetNative
- IODRecordMap.OdPredicate
- IODRecordMap.SetOdPredicate
- IODRecordMap.StandardAttributeTypes
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordMap
type IODSession ¶
type IODSession interface {
objectivec.IObject
// Creates a session object directed over proxy to another host.
InitWithOptionsError(inOptions foundation.INSDictionary) (ODSession, error)
// Returns the node names that are registered with this session.
NodeNamesAndReturnError() (foundation.INSArray, error)
ConfigurationTemplateNames() foundation.INSArray
MappingTemplateNames() foundation.INSArray
AddConfigurationAuthorizationError(configuration IODConfiguration, authorization objectivec.IObject) (bool, error)
ConfigurationForNodename(nodename string) IODConfiguration
ConfigurationAuthorizationAllowingUserInteractionError(allowInteraction bool) (objectivec.IObject, error)
DeleteConfigurationAuthorizationError(configuration IODConfiguration, authorization objectivec.IObject) (bool, error)
DeleteConfigurationWithNodenameAuthorizationError(nodename string, authorization objectivec.IObject) (bool, error)
}
An interface definition for the ODSession class.
Creating and Accessing Sessions ¶
- IODSession.InitWithOptionsError: Creates a session object directed over proxy to another host.
Accessing Node Information ¶
- IODSession.NodeNamesAndReturnError: Returns the node names that are registered with this session.
Instance Properties ¶
Instance Methods ¶
- IODSession.AddConfigurationAuthorizationError
- IODSession.ConfigurationForNodename
- IODSession.ConfigurationAuthorizationAllowingUserInteractionError
- IODSession.DeleteConfigurationAuthorizationError
- IODSession.DeleteConfigurationWithNodenameAuthorizationError
See: https://developer.apple.com/documentation/OpenDirectory/ODSession
type KODExpirationTime ¶
type KODExpirationTime int32
const ( KODExpirationTimeExpired KODExpirationTime = 0 KODExpirationTimeNeverExpires KODExpirationTime = -1 )
func (KODExpirationTime) String ¶
func (e KODExpirationTime) String() string
type KODMatch ¶
type KODMatch uint32
const ( KODMatchAny KODMatch = 0x1 KODMatchBeginsWith KODMatch = 0x2002 KODMatchContains KODMatch = 0x2004 KODMatchEndsWith KODMatch = 0x2003 KODMatchEqualTo KODMatch = 0x2001 KODMatchGreaterThan KODMatch = 0x2006 // Deprecated. KODMatchInsensitiveBeginsWith KODMatch = 0x2102 // Deprecated. KODMatchInsensitiveContains KODMatch = 0x2104 )
type KODNodeType ¶
type KODNodeType uint32
const ( // KODNodeTypeAuthentication: A node used for authentication or record lookups. KODNodeTypeAuthentication KODNodeType = 0x2201 // KODNodeTypeConfigure: A node that specifically refers to the Directory Services configuration. KODNodeTypeConfigure KODNodeType = 0x2202 // KODNodeTypeContacts: A node used for applications that handle contact data. KODNodeTypeContacts KODNodeType = 0x2204 // KODNodeTypeLocalNodes: A node that specifically looks at the local directory. KODNodeTypeLocalNodes KODNodeType = 0x2200 // KODNodeTypeNetwork: A node used for looking up network resource type data. KODNodeTypeNetwork KODNodeType = 0x2205 )
func (KODNodeType) String ¶
func (e KODNodeType) String() string
type ODAttributeMap ¶
type ODAttributeMap struct {
objectivec.Object
}
Instance Properties ¶
- ODAttributeMap.CustomAttributes
- ODAttributeMap.SetCustomAttributes
- ODAttributeMap.CustomQueryFunction
- ODAttributeMap.SetCustomQueryFunction
- ODAttributeMap.CustomTranslationFunction
- ODAttributeMap.SetCustomTranslationFunction
- ODAttributeMap.Value
- ODAttributeMap.SetValue
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap
func NewODAttributeMap ¶
func NewODAttributeMap() ODAttributeMap
NewODAttributeMap creates a new ODAttributeMap instance.
func NewODAttributeMapWithStaticValue ¶
func NewODAttributeMapWithStaticValue(staticValue string) ODAttributeMap
See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap/init(staticValue:)
func NewODAttributeMapWithValue ¶
func NewODAttributeMapWithValue(value string) ODAttributeMap
See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap/init(value:)
func ODAttributeMapFromID ¶
func ODAttributeMapFromID(id objc.ID) ODAttributeMap
ODAttributeMapFromID constructs a ODAttributeMap from an objc.ID.
func (ODAttributeMap) Autorelease ¶
func (o ODAttributeMap) Autorelease() ODAttributeMap
Autorelease adds the receiver to the current autorelease pool.
func (ODAttributeMap) CustomAttributes ¶
func (o ODAttributeMap) CustomAttributes() foundation.INSArray
func (ODAttributeMap) CustomQueryFunction ¶
func (o ODAttributeMap) CustomQueryFunction() string
func (ODAttributeMap) CustomTranslationFunction ¶
func (o ODAttributeMap) CustomTranslationFunction() string
func (ODAttributeMap) Init ¶
func (o ODAttributeMap) Init() ODAttributeMap
Init initializes the instance.
func (ODAttributeMap) SetCustomAttributes ¶
func (o ODAttributeMap) SetCustomAttributes(value foundation.INSArray)
func (ODAttributeMap) SetCustomQueryFunction ¶
func (o ODAttributeMap) SetCustomQueryFunction(value string)
func (ODAttributeMap) SetCustomTranslationFunction ¶
func (o ODAttributeMap) SetCustomTranslationFunction(value string)
func (ODAttributeMap) SetStaticValue ¶
func (o ODAttributeMap) SetStaticValue(staticValue string)
See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap/setStaticValue(_:)
func (ODAttributeMap) SetValue ¶
func (o ODAttributeMap) SetValue(value string)
func (ODAttributeMap) SetVariableSubstitution ¶
func (o ODAttributeMap) SetVariableSubstitution(variableSubstitution string)
See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap/setVariableSubstitution(_:)
func (ODAttributeMap) Value ¶
func (o ODAttributeMap) Value() string
See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap/value-swift.property
type ODAttributeMapClass ¶
type ODAttributeMapClass struct {
// contains filtered or unexported fields
}
func GetODAttributeMapClass ¶
func GetODAttributeMapClass() ODAttributeMapClass
GetODAttributeMapClass returns the class object for ODAttributeMap.
func (ODAttributeMapClass) Alloc ¶
func (oc ODAttributeMapClass) Alloc() ODAttributeMap
Alloc allocates memory for a new instance of the class.
func (ODAttributeMapClass) Class ¶
func (oc ODAttributeMapClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type ODAuthenticationType ¶
type ODAuthenticationType = string
ODAuthenticationType is an Open Directory authentication type.
See: https://developer.apple.com/documentation/OpenDirectory/ODAuthenticationType
var ( // KODAuthenticationType2WayRandom is the authentication type used to specify two way random authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationType2WayRandom KODAuthenticationType2WayRandom ODAuthenticationType // KODAuthenticationType2WayRandomChangePasswd is the authentication type used to change a user’s password using two way random authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationType2WayRandomChangePasswd KODAuthenticationType2WayRandomChangePasswd ODAuthenticationType // KODAuthenticationTypeAPOP is the authentication type used to specify APOP authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeAPOP KODAuthenticationTypeAPOP ODAuthenticationType // KODAuthenticationTypeCRAM_MD5 is the authentication type used to specify CRAM MD5 authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeCRAM_MD5 KODAuthenticationTypeCRAM_MD5 ODAuthenticationType // KODAuthenticationTypeChangePasswd is the authentication type used to change a user’s password using CRAM MD5 authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeChangePasswd KODAuthenticationTypeChangePasswd ODAuthenticationType // KODAuthenticationTypeClearText is the authentication type used to specify cleartext authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeClearText KODAuthenticationTypeClearText ODAuthenticationType // KODAuthenticationTypeCrypt is the authentication type used to specify crypt authentication, which uses a crypt password stored in a user’s record if available. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeCrypt KODAuthenticationTypeCrypt ODAuthenticationType // KODAuthenticationTypeDIGEST_MD5 is the authentication type used to specify digest MD5 authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeDIGEST_MD5 KODAuthenticationTypeDIGEST_MD5 ODAuthenticationType // KODAuthenticationTypeDeleteUser is the authentication type used to specify that a user on an Apple password server be deleted. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeDeleteUser KODAuthenticationTypeDeleteUser ODAuthenticationType // KODAuthenticationTypeGetEffectivePolicy is the authentication type used to access the policies applied to a user. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeGetEffectivePolicy KODAuthenticationTypeGetEffectivePolicy ODAuthenticationType // KODAuthenticationTypeGetGlobalPolicy is the authentication type used to access the global authentication policy. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeGetGlobalPolicy KODAuthenticationTypeGetGlobalPolicy ODAuthenticationType // KODAuthenticationTypeGetKerberosPrincipal is the authentication type used to access the name of the Kerberos principal. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeGetKerberosPrincipal KODAuthenticationTypeGetKerberosPrincipal ODAuthenticationType // KODAuthenticationTypeGetPolicy is the authentication type used to specify that the plug-in should determine the authentication method to use. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeGetPolicy KODAuthenticationTypeGetPolicy ODAuthenticationType // KODAuthenticationTypeGetUserData is the authentication type used to access user data on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeGetUserData KODAuthenticationTypeGetUserData ODAuthenticationType // KODAuthenticationTypeGetUserName is the authentication type used to access a username on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeGetUserName KODAuthenticationTypeGetUserName ODAuthenticationType // KODAuthenticationTypeKerberosTickets is the authentication type used to provide write access to LDAP with an existing Kerberos ticket. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeKerberosTickets KODAuthenticationTypeKerberosTickets ODAuthenticationType // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeMPPEPrimaryKeys KODAuthenticationTypeMPPEPrimaryKeys ODAuthenticationType // KODAuthenticationTypeMSCHAP2 is the authentication type used to specify MS-CHAPv2 encryption. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeMSCHAP2 KODAuthenticationTypeMSCHAP2 ODAuthenticationType // KODAuthenticationTypeNTLMv2 is the authentication type used to verify an NTLMv2 challenge and response. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeNTLMv2 KODAuthenticationTypeNTLMv2 ODAuthenticationType // KODAuthenticationTypeNTLMv2WithSessionKey is the authentication type used to verify an NTLMv2 challenge and response and retrieve session keys in a single call. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeNTLMv2WithSessionKey KODAuthenticationTypeNTLMv2WithSessionKey ODAuthenticationType // KODAuthenticationTypeNewUser is the authentication type used to create a new user on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeNewUser KODAuthenticationTypeNewUser ODAuthenticationType // KODAuthenticationTypeNewUserWithPolicy is the authentication type used to create a new user with specified policy settings on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeNewUserWithPolicy KODAuthenticationTypeNewUserWithPolicy ODAuthenticationType // KODAuthenticationTypeNodeNativeClearTextOK is the authentication type used to specify that the plug-in should determine the authentication method to use. It also specifies that cleartext is an acceptable authentication method. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeNodeNativeClearTextOK KODAuthenticationTypeNodeNativeClearTextOK ODAuthenticationType // KODAuthenticationTypeNodeNativeNoClearText is the authentication type used to specify that the plug-in should determine the authentication method to use. It also specifies that cleartext is not an acceptable authentication method. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeNodeNativeNoClearText KODAuthenticationTypeNodeNativeNoClearText ODAuthenticationType // KODAuthenticationTypeReadSecureHash is the authentication type used to access the SHA1 or seeded SHA1 hash for a local user. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeReadSecureHash KODAuthenticationTypeReadSecureHash ODAuthenticationType // KODAuthenticationTypeSMBNTv2UserSessionKey is the authentication type used to generate an NTLMv2 user session key. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSMBNTv2UserSessionKey KODAuthenticationTypeSMBNTv2UserSessionKey ODAuthenticationType // KODAuthenticationTypeSMBWorkstationCredentialSessionKey is the authentication type used to generate an SMB workstation credential session key. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSMBWorkstationCredentialSessionKey KODAuthenticationTypeSMBWorkstationCredentialSessionKey ODAuthenticationType // KODAuthenticationTypeSMB_LM_Key is the authentication type used to specify SMB LAN manager authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSMB_LM_Key KODAuthenticationTypeSMB_LM_Key ODAuthenticationType // KODAuthenticationTypeSMB_NT_Key is the authentication type used to specify SMB NT authentication. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSMB_NT_Key KODAuthenticationTypeSMB_NT_Key ODAuthenticationType // KODAuthenticationTypeSMB_NT_UserSessionKey is the authentication type used by Samba to access session keys on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSMB_NT_UserSessionKey KODAuthenticationTypeSMB_NT_UserSessionKey ODAuthenticationType // KODAuthenticationTypeSMB_NT_WithUserSessionKey is the authentication type used by Samba to authenticate and access session keys on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSMB_NT_WithUserSessionKey KODAuthenticationTypeSMB_NT_WithUserSessionKey ODAuthenticationType // KODAuthenticationTypeSetGlobalPolicy is the authentication type used to set the global authentication policy. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetGlobalPolicy KODAuthenticationTypeSetGlobalPolicy ODAuthenticationType // KODAuthenticationTypeSetLMHash is the authentication type used to set the LAN manager hash for an account. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetLMHash KODAuthenticationTypeSetLMHash ODAuthenticationType // KODAuthenticationTypeSetNTHash is the authentication type used to set the NT hash for a user. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetNTHash KODAuthenticationTypeSetNTHash ODAuthenticationType // KODAuthenticationTypeSetPassword is the authentication type used to set a password. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetPassword KODAuthenticationTypeSetPassword ODAuthenticationType // KODAuthenticationTypeSetPasswordAsCurrent is the authentication type used to set a password using the current credentials. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetPasswordAsCurrent KODAuthenticationTypeSetPasswordAsCurrent ODAuthenticationType // KODAuthenticationTypeSetPolicy is the authentication type used to specify that the plug-in should determine the authentication method to use. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetPolicy KODAuthenticationTypeSetPolicy ODAuthenticationType // KODAuthenticationTypeSetPolicyAsCurrent is the authentication type used to set the authentication policy using the current credentials. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetPolicyAsCurrent KODAuthenticationTypeSetPolicyAsCurrent ODAuthenticationType // KODAuthenticationTypeSetUserData is the authentication type used to set user data on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetUserData KODAuthenticationTypeSetUserData ODAuthenticationType // KODAuthenticationTypeSetUserName is the authentication type used to set a username on an Apple password server. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetUserName KODAuthenticationTypeSetUserName ODAuthenticationType // KODAuthenticationTypeSetWorkstationPassword is an authentication type used to support PDC SMB interaction with Directory Services. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeSetWorkstationPassword KODAuthenticationTypeSetWorkstationPassword ODAuthenticationType // KODAuthenticationTypeWithAuthorizationRef is the authentication type used to allow root access to local directories with valid authorization. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeWithAuthorizationRef KODAuthenticationTypeWithAuthorizationRef ODAuthenticationType // KODAuthenticationTypeWriteSecureHash is the authentication type used to enable a root process to write the secure hash of a user record. // // See: https://developer.apple.com/documentation/OpenDirectory/kODAuthenticationTypeWriteSecureHash KODAuthenticationTypeWriteSecureHash ODAuthenticationType )
type ODConfiguration ¶
type ODConfiguration struct {
objectivec.Object
}
Instance Properties ¶
- ODConfiguration.AuthenticationModuleEntries
- ODConfiguration.SetAuthenticationModuleEntries
- ODConfiguration.Comment
- ODConfiguration.SetComment
- ODConfiguration.ConnectionIdleTimeoutInSeconds
- ODConfiguration.SetConnectionIdleTimeoutInSeconds
- ODConfiguration.ConnectionSetupTimeoutInSeconds
- ODConfiguration.SetConnectionSetupTimeoutInSeconds
- ODConfiguration.DefaultMappings
- ODConfiguration.SetDefaultMappings
- ODConfiguration.DefaultModuleEntries
- ODConfiguration.SetDefaultModuleEntries
- ODConfiguration.DiscoveryModuleEntries
- ODConfiguration.SetDiscoveryModuleEntries
- ODConfiguration.GeneralModuleEntries
- ODConfiguration.SetGeneralModuleEntries
- ODConfiguration.HideRegistration
- ODConfiguration.SetHideRegistration
- ODConfiguration.ManInTheMiddleProtection
- ODConfiguration.SetManInTheMiddleProtection
- ODConfiguration.NodeName
- ODConfiguration.SetNodeName
- ODConfiguration.PacketEncryption
- ODConfiguration.SetPacketEncryption
- ODConfiguration.PacketSigning
- ODConfiguration.SetPacketSigning
- ODConfiguration.PreferredDestinationHostName
- ODConfiguration.SetPreferredDestinationHostName
- ODConfiguration.PreferredDestinationHostPort
- ODConfiguration.SetPreferredDestinationHostPort
- ODConfiguration.QueryTimeoutInSeconds
- ODConfiguration.SetQueryTimeoutInSeconds
- ODConfiguration.TemplateName
- ODConfiguration.SetTemplateName
- ODConfiguration.TrustAccount
- ODConfiguration.TrustKerberosPrincipal
- ODConfiguration.TrustMetaAccount
- ODConfiguration.TrustType
- ODConfiguration.TrustUsesKerberosKeytab
- ODConfiguration.TrustUsesMutualAuthentication
- ODConfiguration.TrustUsesSystemKeychain
- ODConfiguration.VirtualSubnodes
- ODConfiguration.SetVirtualSubnodes
Instance Methods ¶
- ODConfiguration.AddTrustTypeTrustAccountTrustPasswordUsernamePasswordJoinExistingError
- ODConfiguration.RemoveTrustUsingUsernamePasswordDeleteTrustAccountError
- ODConfiguration.SaveUsingAuthorizationError
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration
func NewODConfiguration ¶
func NewODConfiguration() ODConfiguration
NewODConfiguration creates a new ODConfiguration instance.
func ODConfigurationFromID ¶
func ODConfigurationFromID(id objc.ID) ODConfiguration
ODConfigurationFromID constructs a ODConfiguration from an objc.ID.
func (ODConfiguration) AddTrustTypeTrustAccountTrustPasswordUsernamePasswordJoinExistingError ¶
func (ODConfiguration) AuthenticationModuleEntries ¶
func (o ODConfiguration) AuthenticationModuleEntries() foundation.INSArray
func (ODConfiguration) Autorelease ¶
func (o ODConfiguration) Autorelease() ODConfiguration
Autorelease adds the receiver to the current autorelease pool.
func (ODConfiguration) Comment ¶
func (o ODConfiguration) Comment() string
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/comment-swift.property
func (ODConfiguration) ConnectionIdleTimeoutInSeconds ¶
func (o ODConfiguration) ConnectionIdleTimeoutInSeconds() int
func (ODConfiguration) ConnectionSetupTimeoutInSeconds ¶
func (o ODConfiguration) ConnectionSetupTimeoutInSeconds() int
func (ODConfiguration) DefaultMappings ¶
func (o ODConfiguration) DefaultMappings() IODMappings
func (ODConfiguration) DefaultModuleEntries ¶
func (o ODConfiguration) DefaultModuleEntries() foundation.INSArray
func (ODConfiguration) DiscoveryModuleEntries ¶
func (o ODConfiguration) DiscoveryModuleEntries() foundation.INSArray
func (ODConfiguration) GeneralModuleEntries ¶
func (o ODConfiguration) GeneralModuleEntries() foundation.INSArray
func (ODConfiguration) HideRegistration ¶
func (o ODConfiguration) HideRegistration() bool
func (ODConfiguration) Init ¶
func (o ODConfiguration) Init() ODConfiguration
Init initializes the instance.
func (ODConfiguration) ManInTheMiddleProtection ¶
func (o ODConfiguration) ManInTheMiddleProtection() bool
func (ODConfiguration) NodeName ¶
func (o ODConfiguration) NodeName() string
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/nodeName-swift.property
func (ODConfiguration) PacketEncryption ¶
func (o ODConfiguration) PacketEncryption() int
func (ODConfiguration) PacketSigning ¶
func (o ODConfiguration) PacketSigning() int
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/packetSigning-swift.property
func (ODConfiguration) PreferredDestinationHostName ¶
func (o ODConfiguration) PreferredDestinationHostName() string
func (ODConfiguration) PreferredDestinationHostPort ¶
func (o ODConfiguration) PreferredDestinationHostPort() uint16
func (ODConfiguration) QueryTimeoutInSeconds ¶
func (o ODConfiguration) QueryTimeoutInSeconds() int
func (ODConfiguration) RemoveTrustUsingUsernamePasswordDeleteTrustAccountError ¶
func (ODConfiguration) SaveUsingAuthorizationError ¶
func (o ODConfiguration) SaveUsingAuthorizationError(authorization objectivec.IObject) (bool, error)
authorization is a [*securityfoundation.SFAuthorization].
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/save(using:)
func (ODConfiguration) SetAuthenticationModuleEntries ¶
func (o ODConfiguration) SetAuthenticationModuleEntries(value foundation.INSArray)
func (ODConfiguration) SetComment ¶
func (o ODConfiguration) SetComment(value string)
func (ODConfiguration) SetConnectionIdleTimeoutInSeconds ¶
func (o ODConfiguration) SetConnectionIdleTimeoutInSeconds(value int)
func (ODConfiguration) SetConnectionSetupTimeoutInSeconds ¶
func (o ODConfiguration) SetConnectionSetupTimeoutInSeconds(value int)
func (ODConfiguration) SetDefaultMappings ¶
func (o ODConfiguration) SetDefaultMappings(value IODMappings)
func (ODConfiguration) SetDefaultModuleEntries ¶
func (o ODConfiguration) SetDefaultModuleEntries(value foundation.INSArray)
func (ODConfiguration) SetDiscoveryModuleEntries ¶
func (o ODConfiguration) SetDiscoveryModuleEntries(value foundation.INSArray)
func (ODConfiguration) SetGeneralModuleEntries ¶
func (o ODConfiguration) SetGeneralModuleEntries(value foundation.INSArray)
func (ODConfiguration) SetHideRegistration ¶
func (o ODConfiguration) SetHideRegistration(value bool)
func (ODConfiguration) SetManInTheMiddleProtection ¶
func (o ODConfiguration) SetManInTheMiddleProtection(value bool)
func (ODConfiguration) SetNodeName ¶
func (o ODConfiguration) SetNodeName(value string)
func (ODConfiguration) SetPacketEncryption ¶
func (o ODConfiguration) SetPacketEncryption(value int)
func (ODConfiguration) SetPacketSigning ¶
func (o ODConfiguration) SetPacketSigning(value int)
func (ODConfiguration) SetPreferredDestinationHostName ¶
func (o ODConfiguration) SetPreferredDestinationHostName(value string)
func (ODConfiguration) SetPreferredDestinationHostPort ¶
func (o ODConfiguration) SetPreferredDestinationHostPort(value uint16)
func (ODConfiguration) SetQueryTimeoutInSeconds ¶
func (o ODConfiguration) SetQueryTimeoutInSeconds(value int)
func (ODConfiguration) SetTemplateName ¶
func (o ODConfiguration) SetTemplateName(value string)
func (ODConfiguration) SetVirtualSubnodes ¶
func (o ODConfiguration) SetVirtualSubnodes(value foundation.INSArray)
func (ODConfiguration) TemplateName ¶
func (o ODConfiguration) TemplateName() string
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/templateName-swift.property
func (ODConfiguration) TrustAccount ¶
func (o ODConfiguration) TrustAccount() string
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/trustAccount-swift.property
func (ODConfiguration) TrustKerberosPrincipal ¶
func (o ODConfiguration) TrustKerberosPrincipal() string
func (ODConfiguration) TrustMetaAccount ¶
func (o ODConfiguration) TrustMetaAccount() string
func (ODConfiguration) TrustType ¶
func (o ODConfiguration) TrustType() string
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/trustType-swift.property
func (ODConfiguration) TrustUsesKerberosKeytab ¶
func (o ODConfiguration) TrustUsesKerberosKeytab() bool
func (ODConfiguration) TrustUsesMutualAuthentication ¶
func (o ODConfiguration) TrustUsesMutualAuthentication() bool
func (ODConfiguration) TrustUsesSystemKeychain ¶
func (o ODConfiguration) TrustUsesSystemKeychain() bool
func (ODConfiguration) VirtualSubnodes ¶
func (o ODConfiguration) VirtualSubnodes() foundation.INSArray
type ODConfigurationClass ¶
type ODConfigurationClass struct {
// contains filtered or unexported fields
}
func GetODConfigurationClass ¶
func GetODConfigurationClass() ODConfigurationClass
GetODConfigurationClass returns the class object for ODConfiguration.
func (ODConfigurationClass) Alloc ¶
func (oc ODConfigurationClass) Alloc() ODConfiguration
Alloc allocates memory for a new instance of the class.
func (ODConfigurationClass) Class ¶
func (oc ODConfigurationClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (ODConfigurationClass) SuggestedTrustAccount ¶
func (_ODConfigurationClass ODConfigurationClass) SuggestedTrustAccount(hostname string) string
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/suggestedTrustAccount(_:)
func (ODConfigurationClass) SuggestedTrustPassword ¶
func (_ODConfigurationClass ODConfigurationClass) SuggestedTrustPassword(length uintptr) string
See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/suggestedTrustPassword(_:)
type ODContextRef ¶
type ODContextRef uintptr
ODContextRef is an Open Directory context type.
See: https://developer.apple.com/documentation/OpenDirectory/ODContext
type ODErrorUserInfoKeyType ¶
type ODErrorUserInfoKeyType = string
See: https://developer.apple.com/documentation/OpenDirectory/ODErrorUserInfoKeyType
var ( // See: https://developer.apple.com/documentation/OpenDirectory/kODBackOffSeconds KODBackOffSeconds ODErrorUserInfoKeyType )
type ODFrameworkErrors ¶
type ODFrameworkErrors uint32
See: https://developer.apple.com/documentation/OpenDirectory/ODFrameworkErrors
const ( // KODErrorCredentialsAccountDisabled: The account is disabled. KODErrorCredentialsAccountDisabled ODFrameworkErrors = 5301 // KODErrorCredentialsAccountExpired: The account is expired. KODErrorCredentialsAccountExpired ODFrameworkErrors = 5302 // KODErrorCredentialsAccountInactive: The account is inactive. KODErrorCredentialsAccountInactive ODFrameworkErrors = 5303 KODErrorCredentialsAccountLocked ODFrameworkErrors = 5305 // KODErrorCredentialsAccountNotFound: The authentication server could not find the provided account. KODErrorCredentialsAccountNotFound ODFrameworkErrors = 5300 KODErrorCredentialsAccountTemporarilyLocked ODFrameworkErrors = 5304 // KODErrorCredentialsContactMaster: The authentication server contacted is not the primary server, and the requested operation requires the primary server. KODErrorCredentialsContactMaster ODFrameworkErrors = 5204 KODErrorCredentialsContactPrimary ODFrameworkErrors = 5204 // KODErrorCredentialsInvalid: The provided credentials are invalid with the current node. KODErrorCredentialsInvalid ODFrameworkErrors = 5000 // KODErrorCredentialsInvalidComputer: The account is not permitted to log into this computer. KODErrorCredentialsInvalidComputer ODFrameworkErrors = 5501 // KODErrorCredentialsInvalidLogonHours: The logon attempt was not within set logon hours. KODErrorCredentialsInvalidLogonHours ODFrameworkErrors = 5500 // KODErrorCredentialsMethodNotSupported: The extended authentication method is not supported. KODErrorCredentialsMethodNotSupported ODFrameworkErrors = 5100 // KODErrorCredentialsNotAuthorized: The operation, such as changing a password, is not permitted with current privileges. KODErrorCredentialsNotAuthorized ODFrameworkErrors = 5101 // KODErrorCredentialsOperationFailed: The requested operation failed. KODErrorCredentialsOperationFailed ODFrameworkErrors = 5103 // KODErrorCredentialsParameterError: An invalid parameter was provided. KODErrorCredentialsParameterError ODFrameworkErrors = 5102 // KODErrorCredentialsPasswordChangeRequired: The password must be changed. KODErrorCredentialsPasswordChangeRequired ODFrameworkErrors = 5401 // KODErrorCredentialsPasswordChangeTooSoon: The password was changed too recently to be changed again. KODErrorCredentialsPasswordChangeTooSoon ODFrameworkErrors = 5407 // KODErrorCredentialsPasswordExpired: The password has expired and must be changed. KODErrorCredentialsPasswordExpired ODFrameworkErrors = 5400 // KODErrorCredentialsPasswordNeedsDigit: The provided password needs at least one digit. KODErrorCredentialsPasswordNeedsDigit ODFrameworkErrors = 5406 // KODErrorCredentialsPasswordNeedsLetter: The provided password needs at least one letter. KODErrorCredentialsPasswordNeedsLetter ODFrameworkErrors = 5405 // KODErrorCredentialsPasswordQualityFailed: The provided password did not meet minimum quality requirements. KODErrorCredentialsPasswordQualityFailed ODFrameworkErrors = 5402 // KODErrorCredentialsPasswordTooLong: The provided password is too long. KODErrorCredentialsPasswordTooLong ODFrameworkErrors = 5404 // KODErrorCredentialsPasswordTooShort: The provided password is too short. KODErrorCredentialsPasswordTooShort ODFrameworkErrors = 5403 // KODErrorCredentialsPasswordUnrecoverable: The password could not be recovered from the authentication database. KODErrorCredentialsPasswordUnrecoverable ODFrameworkErrors = 5408 // KODErrorCredentialsServerCommunicationError: The authentication server encountered a communication error. KODErrorCredentialsServerCommunicationError ODFrameworkErrors = 5205 // KODErrorCredentialsServerError: The authentication server encountered an error. KODErrorCredentialsServerError ODFrameworkErrors = 5202 // KODErrorCredentialsServerNotFound: The authentication server could not be found. KODErrorCredentialsServerNotFound ODFrameworkErrors = 5201 // KODErrorCredentialsServerTimeout: The authentication server timed out. KODErrorCredentialsServerTimeout ODFrameworkErrors = 5203 // KODErrorCredentialsServerUnreachable: The authentication server could not be reached. KODErrorCredentialsServerUnreachable ODFrameworkErrors = 5200 // KODErrorDaemonError: The daemon has encountered an undefined error. KODErrorDaemonError ODFrameworkErrors = 10002 // KODErrorNodeConnectionFailed: The node connection failed. KODErrorNodeConnectionFailed ODFrameworkErrors = 2100 KODErrorNodeDisabled ODFrameworkErrors = 2002 // KODErrorNodeUnknownHost: The host provided is invalid. KODErrorNodeUnknownHost ODFrameworkErrors = 2200 // KODErrorNodeUnknownName: The node name provided does not exist and cannot be opened. KODErrorNodeUnknownName ODFrameworkErrors = 2000 // KODErrorNodeUnknownType: The node type provided is not a known value. KODErrorNodeUnknownType ODFrameworkErrors = 2001 // KODErrorPluginError: A plug-in has encountered an undefined error. KODErrorPluginError ODFrameworkErrors = 10001 // KODErrorPluginOperationNotSupported: The plug-in does not support the requested operation. KODErrorPluginOperationNotSupported ODFrameworkErrors = 10000 KODErrorPluginOperationTimeout ODFrameworkErrors = 10003 KODErrorPolicyOutOfRange ODFrameworkErrors = 6001 KODErrorPolicyUnsupported ODFrameworkErrors = 6000 // KODErrorQueryInvalidMatchType: An invalid match type was provided in the query. KODErrorQueryInvalidMatchType ODFrameworkErrors = 3100 // KODErrorQuerySynchronize: A query synchronization has been initiated. KODErrorQuerySynchronize ODFrameworkErrors = 3000 // KODErrorQueryTimeout: The query timed out. KODErrorQueryTimeout ODFrameworkErrors = 3102 // KODErrorQueryUnsupportedMatchType: An unsupported match type was provided in the query. KODErrorQueryUnsupportedMatchType ODFrameworkErrors = 3101 // KODErrorRecordAlreadyExists: The record create failed because the record already exists. KODErrorRecordAlreadyExists ODFrameworkErrors = 4102 // KODErrorRecordAttributeNotFound: The requested attribute could not be found in the record. KODErrorRecordAttributeNotFound ODFrameworkErrors = 4201 // KODErrorRecordAttributeUnknownType: The attribute type is unknown. KODErrorRecordAttributeUnknownType ODFrameworkErrors = 4200 // KODErrorRecordAttributeValueNotFound: The requested attribute value could not be found in the record. KODErrorRecordAttributeValueNotFound ODFrameworkErrors = 4203 // KODErrorRecordAttributeValueSchemaError: The attribute value does not meet schema requirements. KODErrorRecordAttributeValueSchemaError ODFrameworkErrors = 4202 KODErrorRecordInvalidType ODFrameworkErrors = 4101 KODErrorRecordNoLongerExists ODFrameworkErrors = 4104 // KODErrorRecordParameterError: An invalid parameter was provided. KODErrorRecordParameterError ODFrameworkErrors = 4100 // KODErrorRecordPermissionError: The changes were denied due to insufficient permissions. KODErrorRecordPermissionError ODFrameworkErrors = 4001 // KODErrorRecordReadOnlyNode: The record cannot be modified. KODErrorRecordReadOnlyNode ODFrameworkErrors = 4000 // KODErrorRecordTypeDisabled: The record type is disabled by policy for a plug-in. KODErrorRecordTypeDisabled ODFrameworkErrors = 4103 // KODErrorSessionDaemonNotRunning: The daemon is not running. KODErrorSessionDaemonNotRunning ODFrameworkErrors = 1002 // KODErrorSessionDaemonRefused: The daemon refused the session. KODErrorSessionDaemonRefused ODFrameworkErrors = 1003 // KODErrorSessionLocalOnlyDaemonInUse: A normal request was issued when the local-only daemon was in use. KODErrorSessionLocalOnlyDaemonInUse ODFrameworkErrors = 1000 // KODErrorSessionNormalDaemonInUse: A local-only request was issued when the normal daemon was in use. KODErrorSessionNormalDaemonInUse ODFrameworkErrors = 1001 // KODErrorSessionProxyCommunicationError: There was a communication error with the remote daemon. KODErrorSessionProxyCommunicationError ODFrameworkErrors = 1100 // KODErrorSessionProxyIPUnreachable: The proxy did not respond. KODErrorSessionProxyIPUnreachable ODFrameworkErrors = 1102 // KODErrorSessionProxyUnknownHost: The proxy could not be resolved. KODErrorSessionProxyUnknownHost ODFrameworkErrors = 1103 // KODErrorSessionProxyVersionMismatch: Versions mismatch between the remote daemon and the local framework. KODErrorSessionProxyVersionMismatch ODFrameworkErrors = 1101 KODErrorSuccess ODFrameworkErrors = 0 )
func (ODFrameworkErrors) String ¶
func (e ODFrameworkErrors) String() string
type ODMappings ¶
type ODMappings struct {
objectivec.Object
}
Instance Properties ¶
- ODMappings.Comment
- ODMappings.SetComment
- ODMappings.Function
- ODMappings.SetFunction
- ODMappings.FunctionAttributes
- ODMappings.SetFunctionAttributes
- ODMappings.Identifier
- ODMappings.SetIdentifier
- ODMappings.RecordTypes
- ODMappings.TemplateName
- ODMappings.SetTemplateName
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings
func NewODMappings ¶
func NewODMappings() ODMappings
NewODMappings creates a new ODMappings instance.
func ODMappingsFromID ¶
func ODMappingsFromID(id objc.ID) ODMappings
ODMappingsFromID constructs a ODMappings from an objc.ID.
func (ODMappings) Autorelease ¶
func (o ODMappings) Autorelease() ODMappings
Autorelease adds the receiver to the current autorelease pool.
func (ODMappings) Comment ¶
func (o ODMappings) Comment() string
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings/comment-swift.property
func (ODMappings) Function ¶
func (o ODMappings) Function() string
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings/function-swift.property
func (ODMappings) FunctionAttributes ¶
func (o ODMappings) FunctionAttributes() foundation.INSArray
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings/functionAttributes-swift.property
func (ODMappings) Identifier ¶
func (o ODMappings) Identifier() string
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings/identifier-swift.property
func (ODMappings) RecordMapForStandardRecordType ¶
func (o ODMappings) RecordMapForStandardRecordType(stdType string) IODRecordMap
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings/recordMap(forStandardRecordType:)
func (ODMappings) RecordTypes ¶
func (o ODMappings) RecordTypes() foundation.INSArray
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings/recordTypes-swift.property
func (ODMappings) SetComment ¶
func (o ODMappings) SetComment(value string)
func (ODMappings) SetFunction ¶
func (o ODMappings) SetFunction(value string)
func (ODMappings) SetFunctionAttributes ¶
func (o ODMappings) SetFunctionAttributes(value foundation.INSArray)
func (ODMappings) SetIdentifier ¶
func (o ODMappings) SetIdentifier(value string)
func (ODMappings) SetRecordMapForStandardRecordType ¶
func (o ODMappings) SetRecordMapForStandardRecordType(map_ IODRecordMap, stdType string)
func (ODMappings) SetTemplateName ¶
func (o ODMappings) SetTemplateName(value string)
func (ODMappings) TemplateName ¶
func (o ODMappings) TemplateName() string
See: https://developer.apple.com/documentation/OpenDirectory/ODMappings/templateName-swift.property
type ODMappingsClass ¶
type ODMappingsClass struct {
// contains filtered or unexported fields
}
func GetODMappingsClass ¶
func GetODMappingsClass() ODMappingsClass
GetODMappingsClass returns the class object for ODMappings.
func (ODMappingsClass) Alloc ¶
func (oc ODMappingsClass) Alloc() ODMappings
Alloc allocates memory for a new instance of the class.
func (ODMappingsClass) Class ¶
func (oc ODMappingsClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type ODMatchType ¶
type ODMatchType = uint32
ODMatchType is an Open Directory match type.
See: https://developer.apple.com/documentation/OpenDirectory/ODMatchType
type ODModuleEntry ¶
type ODModuleEntry struct {
objectivec.Object
}
Instance Properties ¶
- ODModuleEntry.Mappings
- ODModuleEntry.SetMappings
- ODModuleEntry.Name
- ODModuleEntry.SetName
- ODModuleEntry.SupportedOptions
- ODModuleEntry.UuidString
- ODModuleEntry.SetUuidString
- ODModuleEntry.XpcServiceName
- ODModuleEntry.SetXpcServiceName
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry
func NewODModuleEntry ¶
func NewODModuleEntry() ODModuleEntry
NewODModuleEntry creates a new ODModuleEntry instance.
func NewODModuleEntryWithNameXpcServiceName ¶
func NewODModuleEntryWithNameXpcServiceName(name string, xpcServiceName string) ODModuleEntry
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry/init(name:xpcServiceName:)
func ODModuleEntryFromID ¶
func ODModuleEntryFromID(id objc.ID) ODModuleEntry
ODModuleEntryFromID constructs a ODModuleEntry from an objc.ID.
func (ODModuleEntry) Autorelease ¶
func (o ODModuleEntry) Autorelease() ODModuleEntry
Autorelease adds the receiver to the current autorelease pool.
func (ODModuleEntry) Init ¶
func (o ODModuleEntry) Init() ODModuleEntry
Init initializes the instance.
func (ODModuleEntry) Mappings ¶
func (o ODModuleEntry) Mappings() IODMappings
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry/mappings-swift.property
func (ODModuleEntry) Name ¶
func (o ODModuleEntry) Name() string
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry/name-swift.property
func (ODModuleEntry) Option ¶
func (o ODModuleEntry) Option(optionName string) objectivec.IObject
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry/option(_:)
func (ODModuleEntry) SetMappings ¶
func (o ODModuleEntry) SetMappings(value IODMappings)
func (ODModuleEntry) SetName ¶
func (o ODModuleEntry) SetName(value string)
func (ODModuleEntry) SetOptionValue ¶
func (o ODModuleEntry) SetOptionValue(optionName string, value objectivec.IObject)
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry/setOption(_:value:)
func (ODModuleEntry) SetUuidString ¶
func (o ODModuleEntry) SetUuidString(value string)
func (ODModuleEntry) SetXpcServiceName ¶
func (o ODModuleEntry) SetXpcServiceName(value string)
func (ODModuleEntry) SupportedOptions ¶
func (o ODModuleEntry) SupportedOptions() foundation.INSArray
func (ODModuleEntry) UuidString ¶
func (o ODModuleEntry) UuidString() string
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry/uuidString-swift.property
func (ODModuleEntry) XpcServiceName ¶
func (o ODModuleEntry) XpcServiceName() string
See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry/xpcServiceName-swift.property
type ODModuleEntryClass ¶
type ODModuleEntryClass struct {
// contains filtered or unexported fields
}
func GetODModuleEntryClass ¶
func GetODModuleEntryClass() ODModuleEntryClass
GetODModuleEntryClass returns the class object for ODModuleEntry.
func (ODModuleEntryClass) Alloc ¶
func (oc ODModuleEntryClass) Alloc() ODModuleEntry
Alloc allocates memory for a new instance of the class.
func (ODModuleEntryClass) Class ¶
func (oc ODModuleEntryClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type ODNode ¶
type ODNode struct {
objectivec.Object
}
An ODNode object serves as a Cocoa wrapper for an Open Directory node.
Creating and Initializing a Node ¶
- ODNode.InitWithSessionNameError: Creates a node object with a specified session and name.
- ODNode.InitWithSessionTypeError: Creates a node object with a specified session and type.
Querying a Node ¶
- ODNode.CustomCallSendDataError: Returns the result of a custom call to the node.
- ODNode.NodeDetailsForKeysError: Returns a dictionary containing details about a node.
- ODNode.NodeName: The node’s name.
- ODNode.SubnodeNamesAndReturnError: Returns the names of subnodes for the node.
- ODNode.UnreachableSubnodeNamesAndReturnError: Returns an array of the subnodes of a given node that are currently unreachable.
Setting Node Credentials ¶
- ODNode.SetCredentialsWithRecordTypeRecordNamePasswordError: Sets credentials for interacting with the node.
Managing Node Records ¶
- ODNode.CreateRecordWithRecordTypeNameAttributesError: Creates a record in a specified node with specified properties.
- ODNode.RecordWithRecordTypeNameAttributesError: Returns a record from the node with a specified type and name.
- ODNode.SupportedAttributesForRecordTypeError: Returns an array of attribute types supported by the node’s records.
- ODNode.SupportedRecordTypesAndReturnError: Returns an array of the record types supported by the node.
Instance Properties ¶
Instance Methods ¶
- ODNode.AccountPoliciesAndReturnError
- ODNode.AddAccountPolicyToCategoryError
- ODNode.CustomFunctionPayloadError
- ODNode.PasswordContentCheckForRecordNameError
- ODNode.RemoveAccountPolicyFromCategoryError
- ODNode.SetAccountPoliciesError
See: https://developer.apple.com/documentation/OpenDirectory/ODNode
func NewODNodeWithSessionNameError ¶
func NewODNodeWithSessionNameError(inSession IODSession, inName string) (ODNode, error)
Creates a node object with a specified session and name.
inSession: The session.
inName: The name of the node.
Return Value ¶
The created node object.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/init(session:name:)
func NewODNodeWithSessionTypeError ¶
func NewODNodeWithSessionTypeError(inSession IODSession, inType ODNodeType) (ODNode, error)
Creates a node object with a specified session and type.
inSession: The session.
inType: The node type.
Return Value ¶
The created node object.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/init(session:type:)
func ODNodeFromID ¶
ODNodeFromID constructs a ODNode from an objc.ID.
An ODNode object serves as a Cocoa wrapper for an Open Directory node.
func (ODNode) AccountPoliciesAndReturnError ¶
func (o ODNode) AccountPoliciesAndReturnError() (foundation.INSDictionary, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/accountPolicies()
func (ODNode) AddAccountPolicyToCategoryError ¶
func (o ODNode) AddAccountPolicyToCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/addAccountPolicy(_:toCategory:)
func (ODNode) Autorelease ¶
Autorelease adds the receiver to the current autorelease pool.
func (ODNode) Configuration ¶
func (o ODNode) Configuration() IODConfiguration
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/configuration
func (ODNode) CreateRecordWithRecordTypeNameAttributesError ¶
func (o ODNode) CreateRecordWithRecordTypeNameAttributesError(inRecordType unsafe.Pointer, inRecordName string, inAttributes foundation.INSDictionary) (IODRecord, error)
Creates a record in a specified node with specified properties.
inRecordType: The record’s type.
inRecordName: The record’s name.
inAttributes: A dictionary of key-value pairs representing attributes for the record. Can be `nil`.
Return Value ¶
The created record.
Discussion ¶
The record is automatically assigned a UUID. This UUID can be overridden if one is specified in `inAttributes`.
func (ODNode) CustomCallSendDataError ¶
func (o ODNode) CustomCallSendDataError(inCustomCode int, inSendData foundation.NSData) (foundation.NSData, error)
Returns the result of a custom call to the node.
inCustomCode: The custom code to send to the node.
inSendData: Data required by `inCustomCode`. Can be `nil`.
Return Value ¶
The result of the custom call.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/customCall(_:send:)
func (ODNode) CustomFunctionPayloadError ¶
func (o ODNode) CustomFunctionPayloadError(function string, payload objectivec.IObject) (objectivec.IObject, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/customFunction(_:payload:)
func (ODNode) InitWithSessionNameError ¶
func (o ODNode) InitWithSessionNameError(inSession IODSession, inName string) (ODNode, error)
Creates a node object with a specified session and name.
inSession: The session.
inName: The name of the node.
Return Value ¶
The created node object.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/init(session:name:)
func (ODNode) InitWithSessionTypeError ¶
func (o ODNode) InitWithSessionTypeError(inSession IODSession, inType ODNodeType) (ODNode, error)
Creates a node object with a specified session and type.
inSession: The session.
inType: The node type.
Return Value ¶
The created node object.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/init(session:type:)
func (ODNode) NodeDetailsForKeysError ¶
func (o ODNode) NodeDetailsForKeysError(inKeys foundation.INSArray) (foundation.INSDictionary, error)
Returns a dictionary containing details about a node.
inKeys: An array of keys corresponding to the values returned in the dictionary.
Return Value ¶
A dictionary containing details about the node corresponding to keys specified by `inKeys`.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/nodeDetails(forKeys:)
func (ODNode) NodeName ¶
The node’s name.
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/nodeName
func (ODNode) PasswordContentCheckForRecordNameError ¶
func (ODNode) RecordWithRecordTypeNameAttributesError ¶
func (o ODNode) RecordWithRecordTypeNameAttributesError(inRecordType unsafe.Pointer, inRecordName string, inAttributes objectivec.IObject) (IODRecord, error)
Returns a record from the node with a specified type and name.
inRecordType: The type of the record.
inRecordName: The name of the record.
inAttributes: An array of record attributes to be cached before the record is returned. Can be `nil`.
Return Value ¶
The requested record.
Discussion ¶
func (ODNode) RemoveAccountPolicyFromCategoryError ¶
func (o ODNode) RemoveAccountPolicyFromCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/removeAccountPolicy(_:fromCategory:)
func (ODNode) SetAccountPoliciesError ¶
func (o ODNode) SetAccountPoliciesError(policies foundation.INSDictionary) (bool, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/setAccountPolicies(_:)
func (ODNode) SetCredentialsWithRecordTypeRecordNamePasswordError ¶
func (o ODNode) SetCredentialsWithRecordTypeRecordNamePasswordError(inRecordType unsafe.Pointer, inRecordName string, inPassword string) (bool, error)
Sets credentials for interacting with the node.
inRecordType: The record type that uses the credentials. Can be `nil`. The default value is `kODRecordTypeUsers`.
inRecordName: The username to use to authenticate with the node.
inPassword: The password to use to authenticate with the node.
Discussion ¶
If this function fails, the previous credentials for the node are used.
func (ODNode) SubnodeNamesAndReturnError ¶
func (o ODNode) SubnodeNamesAndReturnError() (foundation.INSArray, error)
Returns the names of subnodes for the node.
Return Value ¶
An array of subnode names.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/subnodeNames()
func (ODNode) SupportedAttributesForRecordTypeError ¶
func (o ODNode) SupportedAttributesForRecordTypeError(inRecordType unsafe.Pointer) (foundation.INSArray, error)
Returns an array of attribute types supported by the node’s records.
inRecordType: The record type to list supported attribute types for. Can be `nil`.
Return Value ¶
An array of supported attribute types.
Discussion ¶
If `inRecordType` is `nil`, this function returns all attribute types supported by all record types of the node; otherwise, only attribute types specific to `inRecordType` are returned.
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/supportedAttributes(forRecordType:)
func (ODNode) SupportedRecordTypesAndReturnError ¶
func (o ODNode) SupportedRecordTypesAndReturnError() (foundation.INSArray, error)
Returns an array of the record types supported by the node.
Return Value ¶
An array of supported record types.
Discussion ¶
If the node does not support checking for supported record types, all possible record types are returned.
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/supportedRecordTypes()
func (ODNode) UnreachableSubnodeNamesAndReturnError ¶
func (o ODNode) UnreachableSubnodeNamesAndReturnError() (foundation.INSArray, error)
Returns an array of the subnodes of a given node that are currently unreachable.
Return Value ¶
An array of unreachable subnodes.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODNode/unreachableSubnodeNames()
type ODNodeClass ¶
type ODNodeClass struct {
// contains filtered or unexported fields
}
func GetODNodeClass ¶
func GetODNodeClass() ODNodeClass
GetODNodeClass returns the class object for ODNode.
func (ODNodeClass) Alloc ¶
func (oc ODNodeClass) Alloc() ODNode
Alloc allocates memory for a new instance of the class.
func (ODNodeClass) Class ¶
func (oc ODNodeClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type ODNodeRef ¶
type ODNodeRef uintptr
ODNodeRef is an Open Directory node type.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeRef
func ODNodeCreateCopy ¶
func ODNodeCreateCopy(allocator corefoundation.CFAllocatorRef, node ODNodeRef, err *corefoundation.CFErrorRef) ODNodeRef
ODNodeCreateCopy returns a copy of an existing node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCreateCopy(_:_:_:)
func ODNodeCreateWithName ¶
func ODNodeCreateWithName(allocator corefoundation.CFAllocatorRef, session ODSessionRef, nodeName corefoundation.CFStringRef, err *corefoundation.CFErrorRef) ODNodeRef
ODNodeCreateWithName returns a new node created with a specified name.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCreateWithName(_:_:_:_:)
func ODNodeCreateWithNodeType ¶
func ODNodeCreateWithNodeType(allocator corefoundation.CFAllocatorRef, session ODSessionRef, nodeType ODNodeType, err *corefoundation.CFErrorRef) ODNodeRef
ODNodeCreateWithNodeType returns a new node created with a specified type.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCreateWithNodeType(_:_:_:_:)
type ODNodeType ¶
type ODNodeType = uint32
ODNodeType is an Open Directory node type.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeType
type ODOptionKeyType ¶
type ODOptionKeyType = string
See: https://developer.apple.com/documentation/OpenDirectory/ODOptionKeyType
type ODPacketEncryption ¶
type ODPacketEncryption uint32
const ( ODPacketEncryptionAllow ODPacketEncryption = 1 ODPacketEncryptionDisabled ODPacketEncryption = 0 ODPacketEncryptionRequired ODPacketEncryption = 2 ODPacketEncryptionSSL ODPacketEncryption = 3 )
func (ODPacketEncryption) String ¶
func (e ODPacketEncryption) String() string
type ODPacketSigning ¶
type ODPacketSigning uint32
const ( ODPacketSigningAllow ODPacketSigning = 1 ODPacketSigningDisabled ODPacketSigning = 0 ODPacketSigningRequired ODPacketSigning = 2 )
func (ODPacketSigning) String ¶
func (e ODPacketSigning) String() string
type ODPolicyAttributeType ¶
type ODPolicyAttributeType = string
See: https://developer.apple.com/documentation/OpenDirectory/ODPolicyAttributeType
var ( // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeCreationTime KODPolicyAttributeCreationTime ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeCurrentDate KODPolicyAttributeCurrentDate ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeCurrentDayOfWeek KODPolicyAttributeCurrentDayOfWeek ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeCurrentTime KODPolicyAttributeCurrentTime ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeCurrentTimeOfDay KODPolicyAttributeCurrentTimeOfDay ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeDaysUntilExpiration KODPolicyAttributeDaysUntilExpiration ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeEnableAtTimeOfDay KODPolicyAttributeEnableAtTimeOfDay ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeEnableOnDate KODPolicyAttributeEnableOnDate ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeEnableOnDayOfWeek KODPolicyAttributeEnableOnDayOfWeek ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeExpiresAtTimeOfDay KODPolicyAttributeExpiresAtTimeOfDay ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeExpiresEveryNDays KODPolicyAttributeExpiresEveryNDays ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeExpiresOnDate KODPolicyAttributeExpiresOnDate ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeExpiresOnDayOfWeek KODPolicyAttributeExpiresOnDayOfWeek ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeFailedAuthentications KODPolicyAttributeFailedAuthentications ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeLastAuthenticationTime KODPolicyAttributeLastAuthenticationTime ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeLastFailedAuthenticationTime KODPolicyAttributeLastFailedAuthenticationTime ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeLastPasswordChangeTime KODPolicyAttributeLastPasswordChangeTime ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeMaximumFailedAuthentications KODPolicyAttributeMaximumFailedAuthentications ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeNewPasswordRequiredTime KODPolicyAttributeNewPasswordRequiredTime ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributePassword KODPolicyAttributePassword ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributePasswordHashes KODPolicyAttributePasswordHashes ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributePasswordHistory KODPolicyAttributePasswordHistory ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributePasswordHistoryDepth KODPolicyAttributePasswordHistoryDepth ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeRecordName KODPolicyAttributeRecordName ODPolicyAttributeType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyAttributeRecordType KODPolicyAttributeRecordType ODPolicyAttributeType )
type ODPolicyCategoryType ¶
type ODPolicyCategoryType = string
See: https://developer.apple.com/documentation/OpenDirectory/ODPolicyCategoryType
var ( // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyCategoryAuthentication KODPolicyCategoryAuthentication ODPolicyCategoryType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyCategoryPasswordChange KODPolicyCategoryPasswordChange ODPolicyCategoryType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyCategoryPasswordContent KODPolicyCategoryPasswordContent ODPolicyCategoryType )
type ODPolicyKeyType ¶
type ODPolicyKeyType = string
See: https://developer.apple.com/documentation/OpenDirectory/ODPolicyKeyType
var ( // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyKeyContent KODPolicyKeyContent ODPolicyKeyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyKeyContentDescription KODPolicyKeyContentDescription ODPolicyKeyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyKeyEvaluationDetails KODPolicyKeyEvaluationDetails ODPolicyKeyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyKeyIdentifier KODPolicyKeyIdentifier ODPolicyKeyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyKeyParameters KODPolicyKeyParameters ODPolicyKeyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyKeyPolicySatisfied KODPolicyKeyPolicySatisfied ODPolicyKeyType )
type ODPolicyType ¶
type ODPolicyType = string
See: https://developer.apple.com/documentation/OpenDirectory/ODPolicyType
var ( // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypeAccountExpiresOnDate KODPolicyTypeAccountExpiresOnDate ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypeAccountMaximumFailedLogins KODPolicyTypeAccountMaximumFailedLogins ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypeAccountMaximumMinutesOfNonUse KODPolicyTypeAccountMaximumMinutesOfNonUse ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypeAccountMaximumMinutesUntilDisabled KODPolicyTypeAccountMaximumMinutesUntilDisabled ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypeAccountMinutesUntilFailedLoginReset KODPolicyTypeAccountMinutesUntilFailedLoginReset ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordCannotBeAccountName KODPolicyTypePasswordCannotBeAccountName ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordChangeRequired KODPolicyTypePasswordChangeRequired ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordHistory KODPolicyTypePasswordHistory ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordMaximumAgeInMinutes KODPolicyTypePasswordMaximumAgeInMinutes ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordMaximumNumberOfCharacters KODPolicyTypePasswordMaximumNumberOfCharacters ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordMinimumNumberOfCharacters KODPolicyTypePasswordMinimumNumberOfCharacters ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordRequiresAlpha KODPolicyTypePasswordRequiresAlpha ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordRequiresMixedCase KODPolicyTypePasswordRequiresMixedCase ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordRequiresNumeric KODPolicyTypePasswordRequiresNumeric ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordRequiresSymbol KODPolicyTypePasswordRequiresSymbol ODPolicyType // See: https://developer.apple.com/documentation/OpenDirectory/kODPolicyTypePasswordSelfModification KODPolicyTypePasswordSelfModification ODPolicyType )
type ODQuery ¶
type ODQuery struct {
objectivec.Object
}
An ODQuery object serves as a Cocoa wrapper for an Open Directory query.
Creating and Initializing a Query ¶
- ODQuery.InitWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError: Creates a query object with provided parameters.
Managing Asynchronous Queries ¶
- ODQuery.Delegate: The query’s delegate.
- ODQuery.SetDelegate
- ODQuery.OperationQueue: The queue on which asynchronous results are delivered to the delegate.
- ODQuery.SetOperationQueue
- ODQuery.ScheduleInRunLoopForMode: Retrieves results from a query asynchronously by scheduling the query in a run loop.
- ODQuery.RemoveFromRunLoopForMode: Removes the query from a specified run loop.
- ODQuery.Synchronize: Restarts a query, disposing of any results it has obtained.
Managing Synchronous Queries ¶
- ODQuery.ResultsAllowingPartialError: Returns results from a query synchronously.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery
func NewODQueryWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError ¶
func NewODQueryWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError(inNode IODNode, inRecordTypeOrList objectivec.IObject, inAttribute unsafe.Pointer, inMatchType ODMatchType, inQueryValueOrList objectivec.IObject, inReturnAttributeOrList objectivec.IObject, inMaximumResults int) (ODQuery, error)
Creates a query object with provided parameters.
inNode: The node to query.
inRecordTypeOrList: The type or types of record to query. Can be an [NSString] object for a single type or an [NSArray] object containing [NSString] objects for multiple types.
inAttribute: The name of the attribute to query.
inMatchType: The type of query.
inQueryValueOrList: The value or values to query in the attribute. Can be an [NSString] object or an [NSData] object for a single value, or an [NSArray] containing [NSString] and [NSData] objects for multiple values.
inReturnAttributeOrList: The attribute or attributes to be returned from the query. Can be an [NSString] object for a single attribute or an [NSArray] object containing [NSString] objects for multiple attributes. Passing `nil` is equivalent to passing `kODAttributeTypeStandardOnly`.
inMaximumResults: The maximum number of values to return.
Return Value ¶
The initialized query.
Discussion ¶
func ODQueryFromID ¶
ODQueryFromID constructs a ODQuery from an objc.ID.
An ODQuery object serves as a Cocoa wrapper for an Open Directory query.
func (ODQuery) Autorelease ¶
Autorelease adds the receiver to the current autorelease pool.
func (ODQuery) Delegate ¶
func (o ODQuery) Delegate() ODQueryDelegate
The query’s delegate.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/delegate
func (ODQuery) InitWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError ¶
func (o ODQuery) InitWithNodeForRecordTypesAttributeMatchTypeQueryValuesReturnAttributesMaximumResultsError(inNode IODNode, inRecordTypeOrList objectivec.IObject, inAttribute unsafe.Pointer, inMatchType ODMatchType, inQueryValueOrList objectivec.IObject, inReturnAttributeOrList objectivec.IObject, inMaximumResults int) (ODQuery, error)
Creates a query object with provided parameters.
inNode: The node to query.
inRecordTypeOrList: The type or types of record to query. Can be an [NSString] object for a single type or an [NSArray] object containing [NSString] objects for multiple types.
inAttribute: The name of the attribute to query.
inMatchType: The type of query.
inQueryValueOrList: The value or values to query in the attribute. Can be an [NSString] object or an [NSData] object for a single value, or an [NSArray] containing [NSString] and [NSData] objects for multiple values.
inReturnAttributeOrList: The attribute or attributes to be returned from the query. Can be an [NSString] object for a single attribute or an [NSArray] object containing [NSString] objects for multiple attributes. Passing `nil` is equivalent to passing `kODAttributeTypeStandardOnly`.
inMaximumResults: The maximum number of values to return.
Return Value ¶
The initialized query.
Discussion ¶
func (ODQuery) OperationQueue ¶
func (o ODQuery) OperationQueue() foundation.OperationQueue
The queue on which asynchronous results are delivered to the delegate.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/operationQueue
func (ODQuery) RemoveFromRunLoopForMode ¶
func (o ODQuery) RemoveFromRunLoopForMode(inRunLoop foundation.NSRunLoop, inMode string)
Removes the query from a specified run loop.
inRunLoop: The run loop.
inMode: The mode to remove the query from.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/remove(from:forMode:)
func (ODQuery) ResultsAllowingPartialError ¶
func (o ODQuery) ResultsAllowingPartialError(inAllowPartialResults bool) (foundation.INSArray, error)
Returns results from a query synchronously.
inAllowPartialResults: If true, only immediately available results are returned; otherwise, the function waits until all results are available.
Return Value ¶
The results of the query in an array of ODRecord objects.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/resultsAllowingPartial(_:)
func (ODQuery) ScheduleInRunLoopForMode ¶
func (o ODQuery) ScheduleInRunLoopForMode(inRunLoop foundation.NSRunLoop, inMode string)
Retrieves results from a query asynchronously by scheduling the query in a run loop.
inRunLoop: The run loop.
inMode: The mode of the run loop.
Discussion ¶
A delegate must be set prior to calling this method; otherwise, results may be lost due to the lack of a receiver.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/schedule(in:forMode:)
func (ODQuery) SetDelegate ¶
func (o ODQuery) SetDelegate(value ODQueryDelegate)
func (ODQuery) SetOperationQueue ¶
func (o ODQuery) SetOperationQueue(value foundation.OperationQueue)
func (ODQuery) Synchronize ¶
func (o ODQuery) Synchronize()
Restarts a query, disposing of any results it has obtained.
Discussion ¶
If the query was originally scheduled in a run loop with ODQuery.ScheduleInRunLoopForMode, the delegate is called with `inResults` set to `nil`, `[inError code]` set to `kODErrorQuerySynchronize`, and `[inError domain]` set to `kODErrorDomainFramework`.
See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/synchronize()
type ODQueryCallback ¶
type ODQueryCallback = func(ODQueryRef, uintptr, uintptr, unsafe.Pointer)
ODQueryCallback is a callback function called as results from a scheduled query are returned.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryCallback
type ODQueryClass ¶
type ODQueryClass struct {
// contains filtered or unexported fields
}
func GetODQueryClass ¶
func GetODQueryClass() ODQueryClass
GetODQueryClass returns the class object for ODQuery.
func (ODQueryClass) Alloc ¶
func (oc ODQueryClass) Alloc() ODQuery
Alloc allocates memory for a new instance of the class.
func (ODQueryClass) Class ¶
func (oc ODQueryClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type ODQueryDelegate ¶
type ODQueryDelegate interface {
objectivec.IObject
// The delegate method called as results are returned from a query scheduled in a run loop.
//
// See: https://developer.apple.com/documentation/OpenDirectory/ODQueryDelegate/query(_:foundResults:error:)
QueryFoundResultsError(inQuery IODQuery, inResults foundation.INSArray, inError foundation.NSError)
}
The ODQueryDelegate protocol defines methods for receiving results returned from an Open Directory query.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryDelegate
type ODQueryDelegateConfig ¶
type ODQueryDelegateConfig struct {
// Receiving results from a scheduled query
// QueryFoundResultsError — The delegate method called as results are returned from a query scheduled in a run loop.
QueryFoundResultsError func(inQuery ODQuery, inResults foundation.INSArray, inError foundation.NSError)
}
ODQueryDelegateConfig holds optional typed callbacks for ODQueryDelegate methods. Set non-nil fields to register the corresponding Objective-C delegate method. Methods with nil callbacks are not registered, so [NSObject.RespondsToSelector] returns false for them — matching the Objective-C delegate pattern exactly.
See Apple Documentation for protocol details.
type ODQueryDelegateObject ¶
type ODQueryDelegateObject struct {
objectivec.Object
}
ODQueryDelegateObject wraps an existing Objective-C object that conforms to the ODQueryDelegate protocol.
func NewODQueryDelegate ¶
func NewODQueryDelegate(config ODQueryDelegateConfig) ODQueryDelegateObject
NewODQueryDelegate creates an Objective-C object implementing the ODQueryDelegate protocol.
Each call registers a unique Objective-C class containing only the methods set in config. This means [NSObject.RespondsToSelector] works correctly for optional delegate methods — only non-nil callbacks are registered.
The returned ODQueryDelegateObject satisfies the ODQueryDelegate interface and can be passed directly to SetDelegate and similar methods.
See Apple Documentation for protocol details.
func ODQueryDelegateObjectFromID ¶
func ODQueryDelegateObjectFromID(id objc.ID) ODQueryDelegateObject
ODQueryDelegateObjectFromID constructs a ODQueryDelegateObject from an objc.ID. The object is determined to conform to the protocol at runtime.
func (ODQueryDelegateObject) BaseObject ¶
func (o ODQueryDelegateObject) BaseObject() objectivec.Object
func (ODQueryDelegateObject) QueryFoundResultsError ¶
func (o ODQueryDelegateObject) QueryFoundResultsError(inQuery IODQuery, inResults foundation.INSArray, inError foundation.NSError)
The delegate method called as results are returned from a query scheduled in a run loop.
inQuery: The query.
inResults: Partial results returned from the query.
inError: An error reference for error details.
Discussion ¶
This method is called as soon as any results become available. Results must be retained or copied. If both `inResults` and `inError` are `nil`, the query has completed.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryDelegate/query(_:foundResults:error:)
type ODQueryRef ¶
type ODQueryRef uintptr
ODQueryRef is an Open Directory query type.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryRef
func ODQueryCreateWithNode ¶
func ODQueryCreateWithNode(allocator corefoundation.CFAllocatorRef, node ODNodeRef, recordTypeOrList corefoundation.CFTypeRef, attribute unsafe.Pointer, matchType ODMatchType, queryValueOrList corefoundation.CFTypeRef, returnAttributeOrList corefoundation.CFTypeRef, maxResults int, err *corefoundation.CFErrorRef) ODQueryRef
ODQueryCreateWithNode creates a query with a node using provided parameters.
See: https://developer.apple.com/documentation/OpenDirectory/ODQueryCreateWithNode(_:_:_:_:_:_:_:_:_:)
func ODQueryCreateWithNodeType ¶
func ODQueryCreateWithNodeType(allocator corefoundation.CFAllocatorRef, nodeType ODNodeType, recordTypeOrList corefoundation.CFTypeRef, attribute unsafe.Pointer, matchType ODMatchType, queryValueOrList corefoundation.CFTypeRef, returnAttributeOrList corefoundation.CFTypeRef, maxResults int, err *corefoundation.CFErrorRef) ODQueryRef
ODQueryCreateWithNodeType creates a query for a particular node type using provided parameters.
type ODRecord ¶
type ODRecord struct {
objectivec.Object
}
An ODRecord object serves as a Cocoa wrapper for an Open Directory record.
Managing Authentication ¶
- ODRecord.ChangePasswordToPasswordError: Changes the record’s password.
- ODRecord.SetNodeCredentialsPasswordError: Sets credentials for the record’s node.
- ODRecord.VerifyPasswordError: Verifies the password for interaction with the record.
Managing Group Records ¶
- ODRecord.AddMemberRecordError: Adds a member record to this group record.
- ODRecord.IsMemberRecordError: Determines whether a given record is a member of this group record.
- ODRecord.RemoveMemberRecordError: Removes a record as a member of this group record.
Managing Record Attributes ¶
- ODRecord.AddValueToAttributeError: Adds a value to an attribute of the record.
- ODRecord.RecordDetailsForAttributesError: Returns a dictionary of attributes with their respective values.
- ODRecord.RecordName: The official name of the record.
- ODRecord.RecordType: The record’s type.
- ODRecord.RemoveValuesForAttributeError: Removes all values from an attribute of the record.
- ODRecord.RemoveValueFromAttributeError: Removes a value from an attribute of the record.
- ODRecord.SetValueForAttributeError: Sets the values of an attribute of the record.
- ODRecord.SynchronizeAndReturnError: Synchronizes the record from the directory to get current data and commit changes.
- ODRecord.ValuesForAttributeError: Returns the values of an attribute of the record.
Deleting a Record ¶
- ODRecord.DeleteRecordAndReturnError: Deletes the record from its node and invalidates it.
Instance Properties ¶
Instance Methods ¶
- ODRecord.AccountPoliciesAndReturnError
- ODRecord.AddAccountPolicyToCategoryError
- ODRecord.AuthenticationAllowedAndReturnError
- ODRecord.PasswordChangeAllowedError
- ODRecord.RemoveAccountPolicyFromCategoryError
- ODRecord.SetAccountPoliciesError
- ODRecord.WillAuthenticationsExpire
- ODRecord.WillPasswordExpire
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord
func ODRecordFromID ¶
ODRecordFromID constructs a ODRecord from an objc.ID.
An ODRecord object serves as a Cocoa wrapper for an Open Directory record.
func (ODRecord) AccountPoliciesAndReturnError ¶
func (o ODRecord) AccountPoliciesAndReturnError() (foundation.INSDictionary, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/accountPolicies()
func (ODRecord) AddAccountPolicyToCategoryError ¶
func (o ODRecord) AddAccountPolicyToCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/addAccountPolicy(_:toCategory:)
func (ODRecord) AddMemberRecordError ¶
Adds a member record to this group record.
inRecord: The member record to add.
Discussion ¶
This method produces an error if this record is not a group record, or if `inRecord` is not an appropriate type.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/addMemberRecord(_:)
func (ODRecord) AddValueToAttributeError ¶
func (o ODRecord) AddValueToAttributeError(inValue objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
Adds a value to an attribute of the record.
inValue: The value. Should be of type [NSString] or [NSData].
inAttribute: The attribute.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/addValue(_:toAttribute:)
func (ODRecord) AuthenticationAllowedAndReturnError ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/authenticationAllowed()
func (ODRecord) Autorelease ¶
Autorelease adds the receiver to the current autorelease pool.
func (ODRecord) ChangePasswordToPasswordError ¶
func (o ODRecord) ChangePasswordToPasswordError(oldPassword string, newPassword string) (bool, error)
Changes the record’s password.
oldPassword: The record’s old password. Can be `nil` if the user has the proper permissions.
newPassword: The new password.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/changePassword(_:toPassword:)
func (ODRecord) DeleteRecordAndReturnError ¶
Deletes the record from its node and invalidates it.
Discussion ¶
The record should be released after this method is called.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/delete()
func (ODRecord) IsMemberRecordError ¶
Determines whether a given record is a member of this group record.
inRecord: The record to test for membership.
Discussion ¶
If this record is not a group record, this method returns false.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/isMemberRecord(_:)
func (ODRecord) PasswordChangeAllowedError ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/passwordChangeAllowed(_:)
func (ODRecord) RecordDetailsForAttributesError ¶
func (o ODRecord) RecordDetailsForAttributesError(inAttributes foundation.INSArray) (foundation.INSDictionary, error)
Returns a dictionary of attributes with their respective values.
inAttributes: An array of attributes. Can be `nil`.
Return Value ¶
A dictionary of the attributes in `inAttributes` with their respective values.
Discussion ¶
If `inAttributes` is `nil`, all currently retrieved attributes are returned.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/recordDetails(forAttributes:)
func (ODRecord) RecordName ¶
The official name of the record.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/recordName
func (ODRecord) RecordType ¶
The record’s type.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/recordType
func (ODRecord) RemoveAccountPolicyFromCategoryError ¶
func (o ODRecord) RemoveAccountPolicyFromCategoryError(policy foundation.INSDictionary, category ODPolicyCategoryType) (bool, error)
func (ODRecord) RemoveMemberRecordError ¶
Removes a record as a member of this group record.
inRecord: The member record.
Discussion ¶
This method produces an error if this record is not a group record, or if `inRecord` is not an appropriate type.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/removeMemberRecord(_:)
func (ODRecord) RemoveValueFromAttributeError ¶
func (o ODRecord) RemoveValueFromAttributeError(inValue objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
Removes a value from an attribute of the record.
inValue: The value. Should be of type [NSString] or [NSData].
inAttribute: The attribute.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/removeValue(_:fromAttribute:)
func (ODRecord) RemoveValuesForAttributeError ¶
Removes all values from an attribute of the record.
inAttribute: The attribute.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/removeValues(forAttribute:)
func (ODRecord) SecondsUntilAuthenticationsExpire ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/secondsUntilAuthenticationsExpire
func (ODRecord) SecondsUntilPasswordExpires ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/secondsUntilPasswordExpires
func (ODRecord) SetAccountPoliciesError ¶
func (o ODRecord) SetAccountPoliciesError(policies foundation.INSDictionary) (bool, error)
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/setAccountPolicies(_:)
func (ODRecord) SetNodeCredentialsPasswordError ¶
func (o ODRecord) SetNodeCredentialsPasswordError(inUsername string, inPassword string) (bool, error)
Sets credentials for the record’s node.
inUsername: The username to use to authenticate with the node.
inPassword: The password to use to authenticate with the node.
Discussion ¶
If this function fails, the previous credentials for the node are used.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/setNodeCredentials(_:password:)
func (ODRecord) SetValueForAttributeError ¶
func (o ODRecord) SetValueForAttributeError(inValueOrValues objectivec.IObject, inAttribute unsafe.Pointer) (bool, error)
Sets the values of an attribute of the record.
inValueOrValues: The value or values. Can be of type [NSString] or [NSData], or an [NSArray] with elements of both types.
inAttribute: The attribute.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/setValue(_:forAttribute:)
func (ODRecord) SynchronizeAndReturnError ¶
Synchronizes the record from the directory to get current data and commit changes.
Discussion ¶
This method only fetches those attributes that have been fetched before.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/synchronize()
func (ODRecord) ValuesForAttributeError ¶
Returns the values of an attribute of the record.
inAttribute: The attribute.
Return Value ¶
An array of attribute values. Elements are of type [NSString] or [NSData].
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/values(forAttribute:)
func (ODRecord) VerifyPasswordError ¶
Verifies the password for interaction with the record.
inPassword: The password for authenticating with the record.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/verifyPassword(_:)
func (ODRecord) WillAuthenticationsExpire ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/willAuthenticationsExpire(_:)
type ODRecordClass ¶
type ODRecordClass struct {
// contains filtered or unexported fields
}
func GetODRecordClass ¶
func GetODRecordClass() ODRecordClass
GetODRecordClass returns the class object for ODRecord.
func (ODRecordClass) Alloc ¶
func (oc ODRecordClass) Alloc() ODRecord
Alloc allocates memory for a new instance of the class.
func (ODRecordClass) Class ¶
func (oc ODRecordClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type ODRecordMap ¶
type ODRecordMap struct {
objectivec.Object
}
Instance Properties ¶
- ODRecordMap.Attributes
- ODRecordMap.Native
- ODRecordMap.SetNative
- ODRecordMap.OdPredicate
- ODRecordMap.SetOdPredicate
- ODRecordMap.StandardAttributeTypes
Instance Methods ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordMap
func NewODRecordMap ¶
func NewODRecordMap() ODRecordMap
NewODRecordMap creates a new ODRecordMap instance.
func ODRecordMapFromID ¶
func ODRecordMapFromID(id objc.ID) ODRecordMap
ODRecordMapFromID constructs a ODRecordMap from an objc.ID.
func (ODRecordMap) AttributeMapForStandardAttribute ¶
func (o ODRecordMap) AttributeMapForStandardAttribute(standardAttribute string) IODAttributeMap
func (ODRecordMap) Attributes ¶
func (o ODRecordMap) Attributes() foundation.INSDictionary
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordMap/attributes-swift.property
func (ODRecordMap) Autorelease ¶
func (o ODRecordMap) Autorelease() ODRecordMap
Autorelease adds the receiver to the current autorelease pool.
func (ODRecordMap) Native ¶
func (o ODRecordMap) Native() string
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordMap/native-swift.property
func (ODRecordMap) OdPredicate ¶
func (o ODRecordMap) OdPredicate() foundation.INSDictionary
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordMap/odPredicate-swift.property
func (ODRecordMap) SetAttributeMapForStandardAttribute ¶
func (o ODRecordMap) SetAttributeMapForStandardAttribute(attributeMap IODAttributeMap, standardAttribute string)
func (ODRecordMap) SetNative ¶
func (o ODRecordMap) SetNative(value string)
func (ODRecordMap) SetOdPredicate ¶
func (o ODRecordMap) SetOdPredicate(value foundation.INSDictionary)
func (ODRecordMap) StandardAttributeTypes ¶
func (o ODRecordMap) StandardAttributeTypes() foundation.INSArray
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordMap/standardAttributeTypes
type ODRecordMapClass ¶
type ODRecordMapClass struct {
// contains filtered or unexported fields
}
func GetODRecordMapClass ¶
func GetODRecordMapClass() ODRecordMapClass
GetODRecordMapClass returns the class object for ODRecordMap.
func (ODRecordMapClass) Alloc ¶
func (oc ODRecordMapClass) Alloc() ODRecordMap
Alloc allocates memory for a new instance of the class.
func (ODRecordMapClass) Class ¶
func (oc ODRecordMapClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
type ODRecordRef ¶
type ODRecordRef uintptr
ODRecordRef is an Open Directory record type.
See: https://developer.apple.com/documentation/OpenDirectory/ODRecordRef
func ODNodeCopyRecord ¶
func ODNodeCopyRecord(node ODNodeRef, recordType unsafe.Pointer, recordName corefoundation.CFStringRef, attributes corefoundation.CFTypeRef, err *corefoundation.CFErrorRef) ODRecordRef
ODNodeCopyRecord returns a reference to a record of a node.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCopyRecord(_:_:_:_:_:)
func ODNodeCreateRecord ¶
func ODNodeCreateRecord(node ODNodeRef, recordType unsafe.Pointer, recordName corefoundation.CFStringRef, attributeDict corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) ODRecordRef
ODNodeCreateRecord creates a record in a specified node with specified properties.
See: https://developer.apple.com/documentation/OpenDirectory/ODNodeCreateRecord(_:_:_:_:_:)
type ODSession ¶
type ODSession struct {
objectivec.Object
}
An ODSession object serves as a Cocoa wrapper for an Open Directory session.
Creating and Accessing Sessions ¶
- ODSession.InitWithOptionsError: Creates a session object directed over proxy to another host.
Accessing Node Information ¶
- ODSession.NodeNamesAndReturnError: Returns the node names that are registered with this session.
Instance Properties ¶
Instance Methods ¶
- ODSession.AddConfigurationAuthorizationError
- ODSession.ConfigurationForNodename
- ODSession.ConfigurationAuthorizationAllowingUserInteractionError
- ODSession.DeleteConfigurationAuthorizationError
- ODSession.DeleteConfigurationWithNodenameAuthorizationError
See: https://developer.apple.com/documentation/OpenDirectory/ODSession
func NewODSessionWithOptionsError ¶
func NewODSessionWithOptionsError(inOptions foundation.INSDictionary) (ODSession, error)
Creates a session object directed over proxy to another host.
inOptions: A dictionary of options to associate with the session. Can be `nil`.
Return Value ¶
The created session object.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/init(options:)
func ODSessionFromID ¶
ODSessionFromID constructs a ODSession from an objc.ID.
An ODSession object serves as a Cocoa wrapper for an Open Directory session.
func (ODSession) AddConfigurationAuthorizationError ¶
func (o ODSession) AddConfigurationAuthorizationError(configuration IODConfiguration, authorization objectivec.IObject) (bool, error)
authorization is a [*securityfoundation.SFAuthorization].
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/add(_:authorization:)
func (ODSession) Autorelease ¶
Autorelease adds the receiver to the current autorelease pool.
func (ODSession) ConfigurationAuthorizationAllowingUserInteractionError ¶
func (o ODSession) ConfigurationAuthorizationAllowingUserInteractionError(allowInteraction bool) (objectivec.IObject, error)
func (ODSession) ConfigurationForNodename ¶
func (o ODSession) ConfigurationForNodename(nodename string) IODConfiguration
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/configuration(forNodename:)
func (ODSession) ConfigurationTemplateNames ¶
func (o ODSession) ConfigurationTemplateNames() foundation.INSArray
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/configurationTemplateNames
func (ODSession) DeleteConfigurationAuthorizationError ¶
func (o ODSession) DeleteConfigurationAuthorizationError(configuration IODConfiguration, authorization objectivec.IObject) (bool, error)
authorization is a [*securityfoundation.SFAuthorization].
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/delete(_:authorization:)
func (ODSession) DeleteConfigurationWithNodenameAuthorizationError ¶
func (o ODSession) DeleteConfigurationWithNodenameAuthorizationError(nodename string, authorization objectivec.IObject) (bool, error)
authorization is a [*securityfoundation.SFAuthorization].
func (ODSession) InitWithOptionsError ¶
func (o ODSession) InitWithOptionsError(inOptions foundation.INSDictionary) (ODSession, error)
Creates a session object directed over proxy to another host.
inOptions: A dictionary of options to associate with the session. Can be `nil`.
Return Value ¶
The created session object.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/init(options:)
func (ODSession) MappingTemplateNames ¶
func (o ODSession) MappingTemplateNames() foundation.INSArray
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/mappingTemplateNames
func (ODSession) NodeNamesAndReturnError ¶
func (o ODSession) NodeNamesAndReturnError() (foundation.INSArray, error)
Returns the node names that are registered with this session.
Return Value ¶
The node names registered with this session.
Discussion ¶
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/nodeNames()
type ODSessionClass ¶
type ODSessionClass struct {
// contains filtered or unexported fields
}
func GetODSessionClass ¶
func GetODSessionClass() ODSessionClass
GetODSessionClass returns the class object for ODSession.
func (ODSessionClass) Alloc ¶
func (oc ODSessionClass) Alloc() ODSession
Alloc allocates memory for a new instance of the class.
func (ODSessionClass) Class ¶
func (oc ODSessionClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (ODSessionClass) DefaultSession ¶
func (_ODSessionClass ODSessionClass) DefaultSession() ODSession
Returns a shared instance of the local session.
Return Value ¶
A shared instance of the local session.
See: https://developer.apple.com/documentation/OpenDirectory/ODSession/default()
type ODSessionRef ¶
type ODSessionRef uintptr
ODSessionRef is an Open Directory session type.
See: https://developer.apple.com/documentation/OpenDirectory/ODSessionRef
var ( // KODSessionDefault is the default session. Used if there is no need to create a specific reference. // // See: https://developer.apple.com/documentation/OpenDirectory/kODSessionDefault KODSessionDefault ODSessionRef )
func ODSessionCreate ¶
func ODSessionCreate(allocator corefoundation.CFAllocatorRef, options corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) ODSessionRef
ODSessionCreate creates a session to be passed to node functions.
See: https://developer.apple.com/documentation/OpenDirectory/ODSessionCreate(_:_:_:)
Source Files
¶
- delegate_class_counter.gen.go
- doc.gen.go
- enums.gen.go
- functions.gen.go
- generate.go
- global_vars.gen.go
- od_attribute_map.gen.go
- od_configuration.gen.go
- od_mappings.gen.go
- od_module_entry.gen.go
- od_node.gen.go
- od_query.gen.go
- od_query_delegate_protocol.gen.go
- od_record.gen.go
- od_record_map.gen.go
- od_session.gen.go
- typedefs.gen.go
- types.gen.go
- undefined_types.gen.go