Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Use Directory Utility on macOS

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:

  1. Opening Directory Utility:

    • You can open Directory Utility through the GUI by navigating to Applications > Utilities > Directory Utility.
    • Alternatively, you can open it via the terminal using the following command:
      sudo open /System/Library/CoreServices/Applications/Directory Utility.app
  2. Connecting to an Active Directory:

    • Open Directory Utility and click the lock icon to make changes.
    • Click "Services" and then double-click "Active Directory".
    • Enter the domain name and click "Bind".
    • You will be prompted to enter the credentials of an account with permission to join the domain.
  3. Listing Directory Services via Terminal:

    • You can list all directory services configured on your macOS machine using the dscl command:
      dscl localhost -list /LDAPv3
    • To see all nodes:
      dscl localhost -list /
  4. Querying Directory Information:

    • To query user information from the directory, use:
      dscl localhost -read /Search/Users/username
    • Replace username with the actual username you are querying.
  5. Adding a User to a Group:

    • You can add a user to a group using the following command:
      sudo dscl . -append /Groups/groupname GroupMembership username
    • Replace groupname with the group you want to add the user to, and username with the user's name.

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.