HowTo join Fedora 27 Desktop to NethServer-7 Active Directory
Please feel free to give me a feedback to be able to correct my howto. I mean technical and formulation (I am not a nativ speaker).
This is based upon limited testing, and a small number of users. Both, Client and Server, were installed as VPS under Proxmox PVE.
Installed NethServer 7.4 Server and updated from command line. Active Directory has been configured and the domain-name example.org was given.
Installed Fedora 27 (Fedora-Workstation-Live-x86_64-27-1.6.iso), with standard gnome desktop and one local user who has local admin rights. DHCP-Client was activ to get an IP from the NethServer who is acting as DHCP-and AD-Server. It is important that the Fedora Client can resolv DNS correctly.
Now we can join the Domain
Open a Terminal on Fedora 27 and get root:
Install some packages
yum install nano realmd oddjob oddjob-mkhomedir sssd adcli samba samba-common
Open a text editor and replace DEFAULT with LEGACY in
Join AD domain
realm join --user=administrator example.org
Check domain-join with
Open a text editor and add override_homedir and override_shell, on the end of sssd.conf
For instance append the following lines:
override_homedir = /home/%u@%d
override_shell = /bin/bash
Optional - set sudoers permission:
echo "firstname.lastname@example.org ALL=(ALL) ALL" | sudo tee -a /etc/sudoers`
echo "email@example.com ALL=(ALL) ALL" | sudo tee -a /etc/sudoers`
Optional - Reboot Fedora Desktop or restart your desktop session
After the reboot, logon with