Directory Utility

On this page 7

Directory Utility is the built-in macOS application that configures how a Mac connects to directory services such as Active Directory and LDAPv3 servers, in what order it searches them for users and groups, and whether the root user is enabled. In macOS administration it is the graphical front end to Open Directory, the framework that resolves every account, group and authentication request on the system.

The app is hidden from Launchpad and lives in /System/Library/CoreServices/Applications, or it can be reached through Users & Groups > Network Account Server. Administrators use it to bind Macs to a corporate directory, inspect directory records and troubleshoot logins, although many organizations now automate the same settings with configuration profiles.

How Directory Utility fits into Open Directory

Directory Utility edits the configuration of opendirectoryd, the background daemon that answers questions such as which user owns a given UID or whether a password is valid. Each data source is a directory node: the local node /Local/Default holds accounts stored on the Mac, while network nodes such as /Active Directory/CORP/All Domains represent remote servers.

The app has three panes. Services enables or configures the plug-ins that connect to external directories. Search Policy defines the order in which nodes are queried for authentication and for contacts. Directory Editor lets an administrator browse and, with care, edit individual records and attributes in any node.

PaneWhat it controlsTypical task
ServicesActive Directory and LDAPv3 connectorsBinding a Mac to a domain
Search PolicyOrder of nodes for logins and contactsPlacing a custom LDAP node before others
Directory EditorRecords and attributes in each nodeChecking a user’s UID or group membership
Main panes of Directory Utility

Because every login passes through this search policy, a misconfigured node order can slow or break authentication for the whole Mac. The local node is always consulted first, which ensures that a local administrator account keeps working even when the network directory is unreachable.

Active Directory binding options

Binding a Mac to Active Directory creates a computer object in the domain and lets domain users sign in with their network credentials. The Active Directory connector exposes options that decide how those accounts behave on the Mac, and these choices have lasting effects on user experience and security.

SettingEffectCommon choice
Create mobile account at loginCaches credentials so the user can log in offlineEnabled for laptops
Force local home on startup diskStores the home folder locally rather than on a serverEnabled in most deployments
UID and GID mappingDerives IDs from AD attributes or generates themGenerated unless UNIX attributes exist
Allow administration byGrants admin rights to listed AD groupsA dedicated Mac admins group
Preferred domain serverDirects requests to a specific controllerSet only when site lookup fails
Key Active Directory connector settings

The mobile account option is the one most often discussed. Without it, a network user cannot log in when the laptop is away from the corporate network, while with it the Mac keeps a local copy of the account and synchronizes the password at the next successful contact with a domain controller.

Command-line equivalents and automation

Every setting in Directory Utility has a command-line counterpart, which matters because fleets are configured by script or MDM rather than by hand. Administrators use these tools to bind Macs during deployment and to diagnose problems over SSH.

TaskCommand-line toolExample use
Bind or unbind Active DirectorydsconfigadJoining a Mac to a domain in a script
Configure an LDAP serverdsconfigldapAdding an LDAPv3 node
Read or edit recordsdsclListing users in the local node
Manage group membershipdseditgroupAdding a user to the admin group
Inspect daemon stateodutilShowing node status and statistics
Directory Utility tasks and their command-line tools

Most MDM solutions also deliver a Directory payload in a configuration profile, which binds the Mac with the same options as the graphical connector. Using profiles keeps settings consistent and auditable, whereas manual edits in Directory Utility tend to drift from one Mac to the next.

The root user and Directory Editor

Directory Utility is the supported place to enable, disable or change the password of the root user, through the Edit menu. The root account is disabled by default on macOS, and Apple recommends keeping it disabled because sudo provides elevated rights with better logging and without a permanently active superuser.

Directory Editor exposes raw attributes such as UniqueID, PrimaryGroupID, NFSHomeDirectory and AuthenticationAuthority. These views are invaluable for diagnosing account corruption or ID conflicts, but editing them without understanding the dependencies can lock a user out or break Secure Token and FileVault relationships, so changes should be tested on a non-production Mac first.

Limitations and the move away from binding

Directory binding is increasingly treated as a legacy approach. It assumes regular contact with domain controllers, which remote and hybrid workers rarely have, and password changes made elsewhere can leave the local password out of sync with the network one. Apple has also removed older connectors such as NIS over successive macOS releases.

Modern deployments often skip binding entirely and use Platform SSO, the Kerberos SSO extension or a third-party identity agent to link a local account with a cloud identity provider. The comparison below shows why.

ApproachStrengthMain weakness
Active Directory bindingDirect use of existing domain accountsNeeds line of sight to domain controllers
Platform SSOLocal login tied to cloud identity providerRequires recent macOS and supported provider
Kerberos SSO extensionKerberos tickets without bindingDoes not create the local account itself
Local accounts onlySimple and resilientNo central password policy
Directory binding compared with modern alternatives

Typical mistakes include binding with an incorrect computer name that collides with an existing object, forgetting that a clock offset over five minutes breaks Kerberos authentication, and leaving a bound Mac in a search policy that points to decommissioned servers.

A plain-language summary

Directory Utility is a hidden settings app that tells a Mac where to look up people and passwords. On a home Mac, accounts live only on the computer itself. In a company, accounts often live on a central server, and this app connects the Mac to that server.

It works a bit like a phone book index. It decides which books to check, and in what order, when someone types a name and password. The key point is that it links a Mac to a company’s shared account system.

An example from practice

An IT technician at a university laboratory manages 40 iMacs that students sign in to with their campus Active Directory accounts. One morning, several students report that their logins fail, while the local administrator account still works. The technician opens Directory Utility on one iMac, checks the Services pane and sees that the Active Directory connector is still bound but the Search Policy lists a domain controller that was retired the previous week.

Using odutil and dsconfigad -show, the technician confirms that the preferred domain server setting is hard-coded to the old controller. After clearing that setting so the Mac discovers controllers through DNS, logins succeed again. The technician then updates the configuration profile in the MDM server so all 40 iMacs receive the corrected binding, and the problem is resolved fleet-wide within an hour.