Join Debian / Ubuntu to Active Directory Domain

To domain-join an debian / ubuntu – server you first need to install realmd and its dependencies
sudo apt install -y realmd
sudo apt install -y sssd-tools sssd libnss-sss libpam-sss adcli
sudo apt install -y realmd packagekit
Join the server to your Active Directory-Domain
sudo realm join yourdomain.tld --user administrator

If you need to, replace “administrator” with another authorized user.

If the above command fails:
check if your user has the required permissions
check the password
try the following:

sudo realm join yourdomain.tld --user administrator --install=/

Leave a Reply

Your email address will not be published. Required fields are marked *