SecHard
Linux AD Join
Change the hostname: hostnamectl set-hostname ubuntutest.domain.local
DNS control and domain control is done by entering /etc/resolv.conf.
systemd-resolved is restarted: --> systemctl restart systemd-resolved
Add DNS and domain by entering /etc/hosts file (ex: 192.169.0.0 domain.local)
ping check to domain.--> ping domain.local
system clock is checked. if it is wrong, synchronisation is achieved by running the timedatectl set-timezone command.--> timedatectl set-timezone Turkey
AD Join scripts are run (Linux AD Join file at the bottom)
Check is done with the id command --> id user@domain.local
Enter the /etc/sssd/sssd.conf file and set use_fully_qualified_names to False. (This step can be skipped if the AD Join script is run)
Run sudo pam-auth-update and select "Create home directory on login". (This step can be skipped if AD Join Scripts are run)
Enter visudo and define ALL authorisation.
Go to /etc/ssh/sshd_config and add AllowUsers (ex: AllowUsers root)
sssd and sshd services are restarted.
Access control is done with ad user.
Linux AD Join file is added to the Linux system with .sh extension and run with the command ./File_Name.sh
SecHard