opendirectory

package
v0.6.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 12 Imported by: 0

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

Protocols

  • ODQueryDelegate: The protocol defines methods for receiving results returned from an Open Directory query.

Type Aliases

Key Types

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
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
	// KODRecordTypeSharePoints is the record type of a SharePoint record.
	//
	// 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
)
View Source
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 ODNodeCopyDetails

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 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 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 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 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 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 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 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.

See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSecondsUntilAuthenticationsExpire(_:)

func ODRecordSecondsUntilPasswordExpires

func ODRecordSecondsUntilPasswordExpires(record ODRecordRef) int64

ODRecordSecondsUntilPasswordExpires.

See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSecondsUntilPasswordExpires(_:)

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.

See: https://developer.apple.com/documentation/OpenDirectory/ODRecordSetNodeCredentialsExtended(_:_:_:_:_:_:_:)

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

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

Instance Methods

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

Instance Methods

See: https://developer.apple.com/documentation/OpenDirectory/ODMappings

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

Querying a Node

Setting Node Credentials

Managing Node Records

Instance Properties

Instance Methods

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

Managing Asynchronous Queries

Managing Synchronous Queries

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

Managing Group Records

Managing Record Attributes

Deleting a Record

Instance Properties

Instance Methods

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

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

Accessing Node Information

Instance Properties

Instance Methods

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
)

func (KODMatch) String

func (e KODMatch) String() string

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

Instance Methods

See: https://developer.apple.com/documentation/OpenDirectory/ODAttributeMap

func NewODAttributeMap

func NewODAttributeMap() ODAttributeMap

NewODAttributeMap creates a new ODAttributeMap instance.

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) 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) SetValue

func (o ODAttributeMap) SetValue(value string)

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

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

Instance Methods

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 (o ODConfiguration) AddTrustTypeTrustAccountTrustPasswordUsernamePasswordJoinExistingError(trustType string, account string, accountPassword string, username string, password string, join bool) (bool, error)

See: https://developer.apple.com/documentation/OpenDirectory/ODConfiguration/addTrustType(_:trustAccount:trustPassword:username:password:joinExisting:)

func (ODConfiguration) Autorelease

func (o ODConfiguration) Autorelease() ODConfiguration

Autorelease adds the receiver to the current autorelease pool.

func (ODConfiguration) Init

Init initializes the instance.

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)

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

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.

type ODContextRef

type ODContextRef uintptr

ODContextRef is an Open Directory context type.

See: https://developer.apple.com/documentation/OpenDirectory/ODContext

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

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) Init

func (o ODMappings) Init() ODMappings

Init initializes the instance.

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) SetTemplateName

func (o ODMappings) SetTemplateName(value string)

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

Instance Methods

See: https://developer.apple.com/documentation/OpenDirectory/ODModuleEntry

func NewODModuleEntry

func NewODModuleEntry() ODModuleEntry

NewODModuleEntry creates a new ODModuleEntry instance.

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) SetMappings

func (o ODModuleEntry) SetMappings(value IODMappings)

func (ODModuleEntry) SetName

func (o ODModuleEntry) SetName(value string)

func (ODModuleEntry) SetUuidString

func (o ODModuleEntry) SetUuidString(value string)

func (ODModuleEntry) SetXpcServiceName

func (o ODModuleEntry) SetXpcServiceName(value string)

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

Querying a Node

Setting Node Credentials

Managing Node Records

Instance Properties

Instance Methods

See: https://developer.apple.com/documentation/OpenDirectory/ODNode

func NewODNode

func NewODNode() ODNode

NewODNode creates a new ODNode instance.

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

func ODNodeFromID(id objc.ID) ODNode

ODNodeFromID constructs a ODNode from an objc.ID.

An ODNode object serves as a Cocoa wrapper for an Open Directory node.

func (ODNode) Autorelease

func (o ODNode) Autorelease() ODNode

Autorelease adds the receiver to the current autorelease pool.

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`.

See: https://developer.apple.com/documentation/OpenDirectory/ODNode/createRecord(withRecordType:name:attributes:)

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) Init

func (o ODNode) Init() ODNode

Init initializes the instance.

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

func (o ODNode) NodeName() string

The node’s name.

See: https://developer.apple.com/documentation/OpenDirectory/ODNode/nodeName

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

See: https://developer.apple.com/documentation/OpenDirectory/ODNode/record(withRecordType:name:attributes:)

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.

See: https://developer.apple.com/documentation/OpenDirectory/ODNode/setCredentialsWithRecordType(_:recordName:password:)

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 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 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

Managing Asynchronous Queries

Managing Synchronous Queries

See: https://developer.apple.com/documentation/OpenDirectory/ODQuery

func NewODQuery

func NewODQuery() ODQuery

NewODQuery creates a new ODQuery instance.

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

See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/init(node:forRecordTypes:attribute:matchType:queryValues:returnAttributes:maximumResults:)

func ODQueryFromID

func ODQueryFromID(id objc.ID) ODQuery

ODQueryFromID constructs a ODQuery from an objc.ID.

An ODQuery object serves as a Cocoa wrapper for an Open Directory query.

func (ODQuery) Autorelease

func (o ODQuery) Autorelease() ODQuery

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) Init

func (o ODQuery) Init() ODQuery

Init initializes the instance.

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

See: https://developer.apple.com/documentation/OpenDirectory/ODQuery/init(node:forRecordTypes:attribute:matchType:queryValues:returnAttributes:maximumResults:)

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.

See: https://developer.apple.com/documentation/OpenDirectory/ODQueryCreateWithNodeType(_:_:_:_:_:_:_:_:_:)

type ODRecord

type ODRecord struct {
	objectivec.Object
}

An ODRecord object serves as a Cocoa wrapper for an Open Directory record.

Managing Authentication

Managing Group Records

Managing Record Attributes

Deleting a Record

Instance Properties

Instance Methods

See: https://developer.apple.com/documentation/OpenDirectory/ODRecord

func NewODRecord

func NewODRecord() ODRecord

NewODRecord creates a new ODRecord instance.

func ODRecordFromID

func ODRecordFromID(id objc.ID) ODRecord

ODRecordFromID constructs a ODRecord from an objc.ID.

An ODRecord object serves as a Cocoa wrapper for an Open Directory record.

func (ODRecord) AddMemberRecordError

func (o ODRecord) AddMemberRecordError(inRecord IODRecord) (bool, error)

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) Autorelease

func (o ODRecord) Autorelease() ODRecord

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

func (o ODRecord) DeleteRecordAndReturnError() (bool, error)

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) Init

func (o ODRecord) Init() ODRecord

Init initializes the instance.

func (ODRecord) IsMemberRecordError

func (o ODRecord) IsMemberRecordError(inRecord IODRecord) (bool, error)

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) 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

func (o ODRecord) RecordName() string

The official name of the record.

See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/recordName

func (ODRecord) RecordType

func (o ODRecord) RecordType() string

The record’s type.

See: https://developer.apple.com/documentation/OpenDirectory/ODRecord/recordType

func (ODRecord) RemoveMemberRecordError

func (o ODRecord) RemoveMemberRecordError(inRecord IODRecord) (bool, error)

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

func (o ODRecord) RemoveValuesForAttributeError(inAttribute unsafe.Pointer) (bool, error)

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) 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

func (o ODRecord) SynchronizeAndReturnError() (bool, error)

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

func (o ODRecord) ValuesForAttributeError(inAttribute unsafe.Pointer) (foundation.INSArray, error)

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

func (o ODRecord) VerifyPasswordError(inPassword string) (bool, error)

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(_:)

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

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) Autorelease

func (o ODRecordMap) Autorelease() ODRecordMap

Autorelease adds the receiver to the current autorelease pool.

func (ODRecordMap) Init

func (o ODRecordMap) Init() ODRecordMap

Init initializes the instance.

func (ODRecordMap) SetNative

func (o ODRecordMap) SetNative(value string)

func (ODRecordMap) SetOdPredicate

func (o ODRecordMap) SetOdPredicate(value foundation.INSDictionary)

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

Accessing Node Information

Instance Properties

Instance Methods

See: https://developer.apple.com/documentation/OpenDirectory/ODSession

func NewODSession

func NewODSession() ODSession

NewODSession creates a new ODSession instance.

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

func ODSessionFromID(id objc.ID) ODSession

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

func (o ODSession) Autorelease() ODSession

Autorelease adds the receiver to the current autorelease pool.

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].

See: https://developer.apple.com/documentation/OpenDirectory/ODSession/deleteConfiguration(withNodename:authorization:)

func (ODSession) Init

func (o ODSession) Init() ODSession

Init initializes the instance.

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) 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

ODSessionCreate creates a session to be passed to node functions.

See: https://developer.apple.com/documentation/OpenDirectory/ODSessionCreate(_:_:_:)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL