Forum Discussion
ejc2_
Jun 02, 2024Copper Contributor
Problems to join Debian/Ubuntu machines to a domain
Is not posible to join Debian/Ubuntu machines to a domain based on Windows Server 2025 (using realm at least) this is the error: ! Couldn't set password for computer account: XXXX$: Message strea...
Lutti1972
Oct 23, 2024Copper Contributor
Hello,
I also had the problem, my solution is to use the SAMBA client. :
sudo hostnamectl set-hostname <hostname>
sudo hostnamectl set-hostname <FQDN>
sudo timedatectl set-timezone Europe/Berlin
sudo apt install sssd-ad sssd-tools realmd adcli krb5-user samba-common-bin adsys oddjob oddjob-mkhomedir ca-certificates
sudo realm -v discover <Domainname>
realm join -v --membership-software=samba <Domainname>
I also had the problem, my solution is to use the SAMBA client. :
sudo hostnamectl set-hostname <hostname>
sudo hostnamectl set-hostname <FQDN>
sudo timedatectl set-timezone Europe/Berlin
sudo apt install sssd-ad sssd-tools realmd adcli krb5-user samba-common-bin adsys oddjob oddjob-mkhomedir ca-certificates
sudo realm -v discover <Domainname>
realm join -v --membership-software=samba <Domainname>
DarienHawkins
Jan 26, 2025Brass Contributor
Joining a fully updated Ubuntu 24.04.1 system to an Active Directory with Server 2025 domain controllers at the Server 2025 forest/domain functions levels was not working. That is until I came across your suggestion. Thank you. Using realm join -v --membership-software=samba <Domainname> did it!