-
Notifications
You must be signed in to change notification settings - Fork 0
Attach Linux to AD
Emma edited this page Apr 17, 2025
·
7 revisions
The goal of this lab is to attach linux to AD. I don't know much more about the specifics so my own plan for this lab is to promote my AD Box to a domain controller, create a domain and domain join my Ubuntu box. This GitHub will serve as my documentation for my process.
- In Server Manager go to "Manage" -> "Add Roles and Features"
- "Before you Begin" Page -> Next
- Select "Role-based or feature-based installation"
- In "Server Selection" click "Select a server from the server pool" and Select "Sullivan-Windows AD" as the destination server. Click next.
- In "Server Roles" Select Active Directory Domain Services and DNS Server. (The DNS server is optional but all my classes have had me use AD as DNS so I'm going to do it here as well.)
- Take note of the default features and click next
- AD DS Page -> Next
- DNS Page -> Next
- Confirm installation selections and click install.
- In Server Manager there should be a notification that you need to configure AD DS. Click the blue text promote this server to a domain controller.
- Add a new forest
- Set up a DSRM password in case of emergency.
- Don't create a DNS delegation. Ignore the alert, you are not integrating with existing DNS infrastructure.
- "Additional Options" page -> next
- Use defaults for the AD DS database, log files, and SYSVOL locations.
- Verify your selections and click next
- Wait through the prerequisite check and install
- Restart your server
This is not a requirement, it's just best practice to access from a named administrator account instead of the Administrator account.
- Sign in as the Domain Administrator (Administrator@emma.local)
- Go to Active Directory Users and Computers
- Navigate to emma.local and to the Users Organizational Unit
- Right-Click -> New -> User
- Input user information -> next -> set a password
- Note: AD is a database of objects. Users and computers are considered objects and are sorted into Organizational Units (folders)
- This is our admin account so we are going to add it to the "Domain Admins" group. Double click on the newly created user.
- Go to the page labeled "Member Of" and click add. In the dialog box that pops up type "Domain Admins" -> Check Names -> OK. Apply changes.
- To create a non-admin user follow the same steps but don't add them to the Domain Admins group.
- Log out and sign back in as the named admin.
sudo -iapt updateapt install realmd sssd sssd-tools libnss-sss libpam-sss adcli samba-common-bin oddjob oddjob-mkhomedir packagekit
nmcli connection showTo find the connection namenmcli con mod "Profile 1" ipv4.dns "172.16.8.28"nmcli con mod "Profile 1" ipv4.dns-search "emma.local"nmcli con up "Profile 1"ping -c 1 <AD BOX IP>to check connectivity
ping -c 1 Sullivan-WindowsADto check if hostnames can resolve.
- sudo realm discover emma.local
- Check if required packages are installed
sudo apt install sssd-tools sssd libnss-sss libpam-sss adcli samba-common-binrealm join --user=emma.sullivan-adm@EMMA.LOCAL EMMA.LOCALrealm listshould verify that we are in the domain.
- Search bar -> Active Directory Users and Computers
- Computers Organizational Unit













