Contents

DirectoryService

The payload that configures an Active Directory (AD) domain.

Declaration

object DirectoryService

Properties

NameTypeDescription
ADAllowMultiDomainAuthboolean

If true, the system allows authentication from any domain in the namespace.

ADAllowMultiDomainAuthFlagboolean

If true, the system enables the ADAllowMultiDomainAuth key.

ADCreateMobileAccountAtLoginboolean

If true, the system creates a mobile account at login.

ADCreateMobileAccountAtLoginFlagboolean

If true, the system enables the ADCreateMobileAccountAtLogin key.

ADDefaultUserShellstring

The default user shell.

ADDefaultUserShellFlagboolean

If true, the system enables the ADDefaultUserShell key.

ADDomainAdminGroupList[string]

The list of Active Directory groups with admin access.

ADDomainAdminGroupListFlagboolean

If true, the system enables the ADDomainAdminGroupList key.

ADForceHomeLocalboolean

If true, the system forces a local home directory.

ADForceHomeLocalFlagboolean

If true, the system enables the ADForceHomeLocal key.

ADMapGGIDAttributestring

The map group GID to attribute.

ADMapGGIDAttributeFlagboolean

If true, the system enables the ADMapGGIDAttributeFlag key.

ADMapGIDAttributestring

The map GID to attribute.

ADMapGIDAttributeFlagboolean

If true, the system enables the ADMapGIDAttribute key.

ADMapUIDAttributestring

The map UID to attribute.

ADMapUIDAttributeFlagboolean

If true, the system enables the ADMapUIDAttribute key.

ADMountStylestring

The network home protocol to use: afp or smb.

ADNamespacestring

The primary user account naming convention; either forest or domain.

ADNamespaceFlagboolean

If true, the system enables the ADNamespace key.

ADOrganizationalUnitstring

The organizational unit to add the joining computer object to.

ADPacketEncryptstring

The packet encryption policy.

ADPacketEncryptFlagboolean

If true, the system enables the ADPacketEncrypt key.

ADPacketSignstring

The packet signing policy.

ADPacketSignFlagboolean

If true, the system enables the ADPacketSign key.

ADPreferredDCServerstring

The preferred domain server.

ADPreferredDCServerFlagboolean

If true, the system enables the ADPreferredDCServer key.

ADRestrictDDNS[string]

An array of strings that represent the interfaces allowed for dynamic DNS updates, such as en0 and en1.

ADRestrictDDNSFlagboolean

If true, the system enables the ADRestrictDDNS key.

ADTrustChangePassIntervalDaysinteger

The number of days before requiring a change of the computer trust account password. Set to 0 to disable the feature.

ADTrustChangePassIntervalDaysFlagboolean

If true, the system enables the ADTrustChangePassIntervalDays key.

ADUseWindowsUNCPathboolean

If true, the system uses the UNC path from Active Directory to derive the network home location.

ADUseWindowsUNCPathFlagboolean

If true, the system enables the ADUseWindowsUNCPath key.

ADWarnUserBeforeCreatingMAboolean

If true, the system enables the warning before creating the mobile account.

ADWarnUserBeforeCreatingMAFlagboolean

If true, the system enables the ADWarnUserBeforeCreatingMA key.

ClientIDstring

The client’s identifier.

Descriptionstring

The directory service description.

HostName Requiredstring

The Active Directory domain to join.

Passwordstring

The password of the account for the domain.

UserNamestring

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>

See Also

Authentication