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.
| Pane | What it controls | Typical task |
|---|---|---|
| Services | Active Directory and LDAPv3 connectors | Binding a Mac to a domain |
| Search Policy | Order of nodes for logins and contacts | Placing a custom LDAP node before others |
| Directory Editor | Records and attributes in each node | Checking a user’s UID or group membership |
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.
| Setting | Effect | Common choice |
|---|---|---|
| Create mobile account at login | Caches credentials so the user can log in offline | Enabled for laptops |
| Force local home on startup disk | Stores the home folder locally rather than on a server | Enabled in most deployments |
| UID and GID mapping | Derives IDs from AD attributes or generates them | Generated unless UNIX attributes exist |
| Allow administration by | Grants admin rights to listed AD groups | A dedicated Mac admins group |
| Preferred domain server | Directs requests to a specific controller | Set only when site lookup fails |
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.
| Task | Command-line tool | Example use |
|---|---|---|
| Bind or unbind Active Directory | dsconfigad | Joining a Mac to a domain in a script |
| Configure an LDAP server | dsconfigldap | Adding an LDAPv3 node |
| Read or edit records | dscl | Listing users in the local node |
| Manage group membership | dseditgroup | Adding a user to the admin group |
| Inspect daemon state | odutil | Showing node status and statistics |
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.
| Approach | Strength | Main weakness |
|---|---|---|
| Active Directory binding | Direct use of existing domain accounts | Needs line of sight to domain controllers |
| Platform SSO | Local login tied to cloud identity provider | Requires recent macOS and supported provider |
| Kerberos SSO extension | Kerberos tickets without binding | Does not create the local account itself |
| Local accounts only | Simple and resilient | No central password policy |
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.