DirectoryService
The payload that configures an Active Directory (AD) domain.
Declaration
object DirectoryServiceProperties
| Name | Type | Description |
|---|---|---|
ADAllowMultiDomainAuth | boolean | If |
ADAllowMultiDomainAuthFlag | boolean | If |
ADCreateMobileAccountAtLogin | boolean | If |
ADCreateMobileAccountAtLoginFlag | boolean | If |
ADDefaultUserShell | string | The default user shell. |
ADDefaultUserShellFlag | boolean | If |
ADDomainAdminGroupList | [string] | The list of Active Directory groups with admin access. |
ADDomainAdminGroupListFlag | boolean | If |
ADForceHomeLocal | boolean | If |
ADForceHomeLocalFlag | boolean | If |
ADMapGGIDAttribute | string | The map group GID to attribute. |
ADMapGGIDAttributeFlag | boolean | If |
ADMapGIDAttribute | string | The map GID to attribute. |
ADMapGIDAttributeFlag | boolean | If |
ADMapUIDAttribute | string | The map UID to attribute. |
ADMapUIDAttributeFlag | boolean | If |
ADMountStyle | string | The network home protocol to use: |
ADNamespace | string | The primary user account naming convention; either |
ADNamespaceFlag | boolean | If |
ADOrganizationalUnit | string | The organizational unit to add the joining computer object to. |
ADPacketEncrypt | string | The packet encryption policy. |
ADPacketEncryptFlag | boolean | If |
ADPacketSign | string | The packet signing policy. |
ADPacketSignFlag | boolean | If |
ADPreferredDCServer | string | The preferred domain server. |
ADPreferredDCServerFlag | boolean | If |
ADRestrictDDNS | [string] | An array of strings that represent the interfaces allowed for dynamic DNS updates, such as en0 and en1. |
ADRestrictDDNSFlag | boolean | If |
ADTrustChangePassIntervalDays | integer | The number of days before requiring a change of the computer trust account password. Set to |
ADTrustChangePassIntervalDaysFlag | boolean | If |
ADUseWindowsUNCPath | boolean | If |
ADUseWindowsUNCPathFlag | boolean | If |
ADWarnUserBeforeCreatingMA | boolean | If |
ADWarnUserBeforeCreatingMAFlag | boolean | If |
ClientID | string | The client’s identifier. |
Description | string | The directory service description. |
HostName Required | string | The Active Directory domain to join. |
Password | string | The password of the account for the domain. |
UserName | string | The user name of the account for the domain. |
Discussion
Specify com.apple.DirectoryService.managed as the payload type.
Profile availability
Device channel | macOS |
User channel | NA |
Allow manual install | macOS |
Requires supervision | NA |
Requires user-approved MDM | NA |
Allowed in user enrollment | macOS |
Allow multiple payloads | macOS |
Profile example
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>HostName</key>
<string>host.example.com</string>
<key>Password</key>
<string>Password123</string>
<key>UserName</key>
<string>bind</string>
<key>PayloadIdentifier</key>
<string>com.example.mydspayload</string>
<key>PayloadType</key>
<string>com.apple.DirectoryService.managed</string>
<key>PayloadUUID</key>
<string>bb657e20-60b9-4c47-8730-51803ddf69e7</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>Active Directory</string>
<key>PayloadIdentifier</key>
<string>com.example.myprofile</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>079b6bc3-4356-4d80-89b4-a4b8a82eb739</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>