Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Directory Utility is a powerful tool available on macOS that allows users to manage directory services. While the term "Utilitário de Diretório" might be more commonly associated with Windows environments, macOS provides its own set of tools for managing directories and network accounts. This utility is crucial for system administrators who need to connect macOS machines to directory services like Active Directory, LDAP, and more. This article will guide you through the basics of using Directory Utility on macOS, providing practical examples and commands to help you get started.
Examples:
Opening Directory Utility:
Applications > Utilities > Directory Utility
.sudo open /System/Library/CoreServices/Applications/Directory Utility.app
Connecting to an Active Directory:
Listing Directory Services via Terminal:
dscl
command:
dscl localhost -list /LDAPv3
dscl localhost -list /
Querying Directory Information:
dscl localhost -read /Search/Users/username
username
with the actual username you are querying.Adding a User to a Group:
sudo dscl . -append /Groups/groupname GroupMembership username
groupname
with the group you want to add the user to, and username
with the user's name.