Joining our machines to the domain and check machines
posted on 17 Jul 2022 under category Active-Directory in series Active_Directory
join AD done under two condition
- DNS setting point to domin IP
- administrator credential
Joining a Windows 10 to the Domain
setting up DNS
- search ethernet -> change adapter options
- Right-click on ethernet -> properties
- click on IPv4 -> add domin ip and router ip at DNS
- check if can ping domin now -> now can see Domain
join batman user to DC
lastly, All we have left to do is join the workstation to our Active Directory domain. You used to just be able to go to system in the control panel to join the pc to the domain However Microsoft are slowly getting rid of the control panel icons and you now need to go to Start -> Settings -> System -> About or just search for system it will take you to the same window.
- In the About window, click Rename this PC (advanced) in the far right menu. If initially, you can’t see the menu. Make sure to maximise the about window for the options to become avalible.
- The System Properties window should appear. Click Change.
- Rename the Computer From its default name. Change the member of to Domain: Then enter the name of the Active Directory Domain you created earlyer in this tutorial. If you have been following along with my examples this will be empire.local.
- You will then be asked to enter a username and password. Enter the administrator details you created for your domain.
- After a couple of seconds you should get a message welcoming you to the domain. Click Ok
- The messages changes telling you the Computer needs to restart . Click Ok
- login as batman user and done
Joining a ubuntu to the Domain
setting up DNS
- edit resolve.conf file -> gedit /etc/resolve.conf -> add domain ip
- Install the following packages:
sudo apt install sssd-ad sssd-tools realmd adcli
- Join the domain We will use the
realm
command, from the realmd
package, to join the domain and create the sssd configuration. Let’s verify the domain is discoverable via DNS:
sudo realm -v discover homelab.local
join Flash user to DC
- Now let’s join the domain -> add admin credential
sudo realm join -U Administrator Homellab.local
- Login as flash user -> done
sudo login
-> flash@homelab.local
-> password
Check Machines on AD
reference
- https://computingforgeeks.com/join-ubuntu-debian-to-active-directory-ad-domain/