Computers

The Active Directory → Computers page lists the domain’s computer accounts: a PC or server that has “joined the domain” has an account here, and uses it to…

The Active Directory → Computers page lists the domain’s computer accounts: a PC or server that has “joined the domain” has an account here, and uses it to authenticate.

The computers listThe computers list
The computers list

The list

The bar has the title «Computers», the search and these buttons:

Button What it does
«Show system computers» / «Hide system computers» shows or hides the domain controllers (here, the appliance itself)
«Reload» re-reads the directory
«Domain join script for Debian/Ubuntu PCs» (the penguin) downloads the script that joins a Debian, Ubuntu or derived PC to the domain (see the example below); it is there when the appliance is the domain controller that runs the domain, not when it coexists with a Windows domain controller

There is no «Add» button: a computer joins the domain from the PC itself, not from the console (the page reminds you: «Computers join the domain client-side: a Windows PC from its system settings, a Debian or Ubuntu PC with the script of the «Domain join script for Debian/Ubuntu PCs» button. This page cannot create them.»). Each row shows the computer’s name, the description and the date of the last update; domain controllers carry the «system» label. The search looks in the name and the description.

The detail

When you choose a computer the title is «Computer» and the bar has two buttons:

Button What it does
«Details» the dialog with «Joined», «Updated» and «Critical» (✓ for a domain controller)
«Delete» removes the computer account after the confirmation «Remove this computer account?»; not available for domain controllers («System computer (a domain controller): it is not deleted.»)

The only editable field is:

Field What it means Typical value
«Description» a free note, up to 1024 characters; empty clears it Administration PC (Jack Green)

Click «Save» at the bottom right to record it.

Example: joining the domain and recognizing the PC

The PC pc-admin-01 (192.168.10.57) has to join the domain corp.johnsmith.test.

  1. On the PC check that the DNS is the address of the domain controller (10.20.0.10): without this the domain cannot be found.
  2. On the Windows PC open the system settings, choose to join it to a domain (the «Domain» entry), write corp.johnsmith.test and, when asked, the credentials of a domain administrator account (for example lwhite). Restart.
  3. In the console open Active Directory → Computers and click «Reload».
  4. Choose PC-ADMIN-01 and, in «Description», write Administration PC (Jack Green). Click «Save».

Check. The computer appears in the list with today’s «Joined» date (from the «Details» dialog). A domain user’s sign-in on the PC works.

If something goes wrong. If the PC does not find the domain, it is almost always the DNS: it must use the address of the domain controller and not the router’s. The complete path, with profile and network folders, is in the scenario “A new PC in the domain”.

Example: joining an Ubuntu PC to the domain

The Ubuntu PC pc-tech-02 has to join the domain corp.johnsmith.test.

  1. In the console open Active Directory → Computers and click «Domain join script for Debian/Ubuntu PCs». The file atlas-join-corp.johnsmith.test.sh downloads. It holds the domain’s name, the domain controller’s name and address and your domain account (for example lwhite), but no password: that is why it downloads only from here, for an administrator, and not from the public downloads page. With the root account, or from an EDON Citadel session, the script uses the domain’s Administrator account.
  2. Copy the file to the PC (a USB stick, mail) and, as a user who may use sudo, run bash atlas-join-corp.johnsmith.test.sh.
  3. The script asks for two passwords only: sudo’s on the PC, then lwhite’s in the domain. It does the rest by itself:
    • it installs realmd, sssd and adcli;
    • it pins the domain controller to the address Atlas offers its clients and, if the PC’s DNS does not find the domain, has the PC ask the domain controller for the domain’s names;
    • it takes the time from the domain controller;
    • it joins the PC to the domain;
    • it lets domain users sign in with their short name (jgreen) and makes their home folder at their first sign-in;
    • it lets the «Domain Admins» group use sudo.
  4. In the console click «Reload»: PC-TECH-02 appears.

Check. The script ends with «Done: pc-tech-02 is in the domain corp.johnsmith.test.». At the PC’s login a domain user signs in with their short name and their domain password.

If something goes wrong.

  • The PC has a common name. If it is called like many other PCs (debian, ubuntu…) or its name is longer than 15 characters, the script stops before changing anything. Rename it with sudo hostnamectl set-hostname pc-tech-02 and run the script again.
  • The domain cannot be found. The script can have the PC ask the domain controller for the names with systemd-resolved, NetworkManager or a hand-written /etc/resolv.conf. If the PC uses something else, set the domain controller’s address as the DNS server in the PC’s network settings and run the script again.
  • The PC is already in the domain. Run again, the script does not join it a second time: it says so and applies the rest again, which also completes a join left half-way.

Example: removing a decommissioned PC

The PC pc-old has been scrapped and no longer exists.

  1. Open Active Directory → Computers and look for pc-old in the search.
  2. Choose the computer and click «Delete».
  3. Confirm with «Delete» in «Remove this computer account?».

Check. The computer disappears from the list («Computer removed.»). The PC, if it came back to life, could no longer sign in to the domain until it is joined again.

If something goes wrong. If the «Delete» button is grey, the computer is a domain controller: it cannot be deleted from here.

Example: a description that says who the PC belongs to

With dozens of computers, the names PC-ADMIN-01, PC-PROD-03 are not enough to remember who uses them.

  1. Open each computer and write the department and the person in «Description», for example Production - Paul Black.
  2. «Save».
  3. Then search production in the list’s search: only the production computers are shown.

Check. The search finds computers by description.

Limits and pitfalls

  • Computers are not created or renamed from here, and a computer is not moved between organizational units: the domain-join procedure or the Windows tools do that.
  • Deleting a computer account does not clean the PC: the PC will keep believing it is in the domain until you remove it from Windows.
  • The computer accounts of Windows administrators (in coexistence) are replicated: deleting one here deletes it on the Windows domain controller too.
  • Domain controllers (here the appliance, and in coexistence the Windows DCs) are “system” and cannot be deleted.
LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer